edit-helper

parent fb385747
Pipeline #1236 failed with stages
in 0 seconds
module ApplicationHelper
module ApplicationHelper
# Returns the full title on a per-page basis.
def full_title(page_title = '')
base_title = "Ruby on Rails Tutorial Sample App"
if page_title.empty?
base_title
else
page_title + " | " + base_title
end
def full_title(page_title = '')
base_title = 'Ruby On Rails Tutorial'
if page_title.empty?
base_title
else
"#{base_title} | #{page_title}"
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