Skip to content

Commit

Permalink
links added
Browse files Browse the repository at this point in the history
  • Loading branch information
vidushee1awasthi committed Apr 25, 2012
1 parent c943b93 commit 8a46c2c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion app/views/layouts/application.html.erb
Expand Up @@ -7,7 +7,10 @@
<%= csrf_meta_tags %>
</head>
<body>

<%= link_to "Home", home_path %>
<%= link_to "Home", root_path %>
<%= link_to "About Us", about_path %>
<%= link_to "Help", help_path %>
<%= yield %>

</body>
Expand Down
2 changes: 1 addition & 1 deletion app/views/static_pages/home.html.erb
Expand Up @@ -3,7 +3,7 @@
<p>

This is the home page for the
<a href="http://railstutorial.org/">Ruby on Rails Tutorial</a>
<%= link_to("Ruby on Rails Tutorial", "http://railstutorial.org/") %>
sample application.
</p>

Expand Down
6 changes: 3 additions & 3 deletions config/routes.rb
@@ -1,8 +1,8 @@
SampleApp::Application.routes.draw do
get "static_pages/home"
get "static_pages/home", :as => :home

get "static_pages/help"
get "static_pages/about"
get "static_pages/help", :as => :help
get "static_pages/about", :as => :about

root :to => 'static_pages#home'

Expand Down

0 comments on commit 8a46c2c

Please sign in to comment.