Permalink
Browse files

Static pages finished

  • Loading branch information...
hoornet committed Nov 28, 2013
1 parent e13ae3b commit 9156e860d43f789466d421bb77831bea3d1a881b
@@ -1,11 +1,12 @@
<!DOCTYPE html>
<html>
<head>
- <title>SampleApp</title>
+ <title>Ruby on Rails Tutorial Sample App | <%= yield(:title) %></title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
+
<body>
<%= yield %>
@@ -1,14 +1,7 @@
+<% provide(:title, 'About Us') %>
-<!DOCTYPE html>
-<html>
-<head>
- <title>Ruby on Rails Tutorial Sample App | About Us</title>
-</head>
-<body>
<h1>About Us</h1>
<p>
The <a href="http://railstutorial.org">Ruby on Rails tutorial</a> is a project
bla bla bla
</p>
-</body>
-</html>
@@ -1,14 +1,6 @@
-
-<!DOCTYPE html>
-<html>
-<head>
- <title>Ruby on Rails Tutorial Sample App | Help</title>
-</head>
-<body>
+<% provide(:title, 'Help') %>
<h1>Help</h1>
<p>Find me in app/views/static_pages/help.html.erb</p>
-</body>
-</html>
@@ -1,18 +1,9 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Ruby on Rails Tutorial Sample App | Home</title>
-</head>
-<body>
- <h1>Sample App</h1>
- <p>
- Sample App
- This is the home for the
- <a href="http://railstutorial.org">Ruby on Rails tutorial</a>
- sample applications
- </p>
-
-</body>
-</html>
-
+<% provide(:title, 'Home') %>
+<h1>Sample App</h1>
+<p>
+ Sample App
+ This is the home for the
+ <a href="http://railstutorial.org">Ruby on Rails tutorial</a>
+ sample applications
+</p>

0 comments on commit 9156e86

Please sign in to comment.