[READ-ONLY] Mirror of https://github.com/shuuji3/rails-tutorial-sample-app.
0

Configure Feed

Select the types of activity you want to include in your feed.

Refactoring <head> tag using ERB feature.

+6 -3
+2 -1
app/views/static_pages/about.html.erb
··· 1 + <% provide(:title, "About") %> 1 2 <!DOCTYPE html> 2 3 <html> 3 4 <head> 4 - <title>About | Ruby on Rails Tutorial Sample App</title> 5 + <title><%= yield(:title) %> | Ruby on Rails Tutorial Sample App</title> 5 6 </head> 6 7 <body> 7 8 <h1>About</h1>
+2 -1
app/views/static_pages/help.html.erb
··· 1 + <% provide(:title, "Help") %> 1 2 <!doctype html> 2 3 <html> 3 4 <head> 4 - <title>Help | Ruby on Rails Tutorial Sample App</title> 5 + <title><%= yield(:title) %> | Ruby on Rails Tutorial Sample App</title> 5 6 </head> 6 7 <body> 7 8 <h1>Help</h1>
+2 -1
app/views/static_pages/home.html.erb
··· 1 + <% provide(:title, "Home") %> 1 2 <!DOCTYPE html> 2 3 <html> 3 4 <head> 4 - <title>Home | Ruby on Rails Tutorial Sample App</title> 5 + <title><%= yield(:title) %> | Ruby on Rails Tutorial Sample App</title> 5 6 </head> 6 7 <body> 7 8 <h1>Sample App</h1>