Skip to content

Commit

Permalink
Static pages finished
Browse files Browse the repository at this point in the history
  • Loading branch information
hoornet committed Nov 28, 2013
1 parent e13ae3b commit 9156e86
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 35 deletions.
3 changes: 2 additions & 1 deletion app/views/layouts/application.html.erb
@@ -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 %>
Expand Down
9 changes: 1 addition & 8 deletions app/views/static_pages/about.html.erb
@@ -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>
10 changes: 1 addition & 9 deletions app/views/static_pages/help.html.erb
@@ -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>

25 changes: 8 additions & 17 deletions app/views/static_pages/home.html.erb
@@ -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.