#30 Pretty Page Title

If you are like me, you avoid creating page titles because it is kind of a pain. But in this episode I will show you a clean way to add titles to your pages.
# application_helper.rb
def title(page_title)
  content_for(:title) { page_title }
end

你可能感兴趣的:(java)