diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 092b0a0..b507060 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,11 +1,12 @@ - SampleApp + Ruby on Rails Tutorial Sample App | <%= yield(:title) %> <%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> + <%= yield %> diff --git a/app/views/static_pages/about.html.erb b/app/views/static_pages/about.html.erb index a2514c7..dc6748d 100644 --- a/app/views/static_pages/about.html.erb +++ b/app/views/static_pages/about.html.erb @@ -1,14 +1,7 @@ +<% provide(:title, 'About Us') %> - - - - Ruby on Rails Tutorial Sample App | About Us - -

About Us

The Ruby on Rails tutorial is a project bla bla bla

- - diff --git a/app/views/static_pages/help.html.erb b/app/views/static_pages/help.html.erb index 96e410d..f6e2a99 100644 --- a/app/views/static_pages/help.html.erb +++ b/app/views/static_pages/help.html.erb @@ -1,14 +1,6 @@ - - - - - Ruby on Rails Tutorial Sample App | Help - - +<% provide(:title, 'Help') %>

Help

Find me in app/views/static_pages/help.html.erb

- - diff --git a/app/views/static_pages/home.html.erb b/app/views/static_pages/home.html.erb index ab5ce06..ecd78d6 100644 --- a/app/views/static_pages/home.html.erb +++ b/app/views/static_pages/home.html.erb @@ -1,18 +1,9 @@ - - - - Ruby on Rails Tutorial Sample App | Home - - -

Sample App

-

- Sample App - This is the home for the - Ruby on Rails tutorial - sample applications -

- - - - +<% provide(:title, 'Home') %> +

Sample App

+

+ Sample App + This is the home for the + Ruby on Rails tutorial + sample applications +