Permalink
Browse files

Finish layout and routes, chapter 5

  • Loading branch information...
1 parent 76d9ab6 commit 33e95409bb951e200a8ff274630bedf4bb37e961 Hanif, Hakimuddin committed May 14, 2014
Showing with 3 additions and 1 deletion.
  1. +1 −1 app/views/static_pages/home.html.erb
  2. +2 −0 config/routes.rb
@@ -6,7 +6,7 @@
<a href="http://railstutorial.org/">Ruby on Rails Tutorial</a>
sample application.
</h2>
- <%= link_to "Sign up now!", '#', class: "btn btn-large btn-primary" %>
+ <%= link_to "Sign up now!", signup_path, class: "btn btn-large btn-primary" %>
</div>
<%= link_to image_tag("rails.png", alt: "Rails"), 'http://rubyonrails.org/' %>
View
@@ -1,8 +1,10 @@
SampleApp::Application.routes.draw do
+ get "users/new"
root 'static_pages#home'
match '/help', to: 'static_pages#help', via: 'get'
match '/about', to: 'static_pages#aboutus', via: 'get'
match '/contact', to: 'static_pages#contact', via: 'get'
+ match '/signup', to: 'users#new', via: 'get'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".

0 comments on commit 33e9540

Please sign in to comment.