edit-helper

parent fb385747
Pipeline #1236 failed with stages
in 0 seconds
module ApplicationHelper module ApplicationHelper
module ApplicationHelper def full_title(page_title = '')
# Returns the full title on a per-page basis. base_title = 'Ruby On Rails Tutorial'
def full_title(page_title = '')
base_title = "Ruby on Rails Tutorial Sample App" if page_title.empty?
if page_title.empty? base_title
base_title else
else "#{base_title} | #{page_title}"
page_title + " | " + base_title
end
end end
end end
end end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment