edit helper_apllication

parent 42348eae
Pipeline #1234 failed with stages
in 0 seconds
module ApplicationHelper module ApplicationHelper
def full_title(page_title)
base_title = "Ruby on Rails Tutorial Sample App"
if page_title.empty?
base_title
else
"#{base_title} | #{page_title}"
end
end
end end
<% provide(:title, "Page Title") %> <% provide(:title, "Page Title") %>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title><%= yield(:title) %> | Ruby on Rails Tutorial Sample App</title> <title><%= yield(:title) %> | Ruby on Rails Tutorial Sample App</title>
</head> </head>
<body> <body>
Contents Contents
</body> </body>
</html> </html>
\ 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