Skip to content

Commit 5a0ea51

Browse files
committed
Finish layout and routes
1 parent 26ca255 commit 5a0ea51

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/views/static_pages/home.html.erb

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
sample application.
88
</h2>
99

10-
<%= link_to "Sign up now!", '#', class: "btn btn-large btn-primary" %>
10+
<%= link_to "Sign up now!", signup_path, class: "btn btn-large btn-primary" %>
1111
</div>
1212

1313
<%= link_to image_tag("rails.png", alt: "Rails"), 'http://rubyonrails.org/' %>
14-

app/views/users/new.html.erb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
<h1>Users#new</h1>
1+
<% provide(:title, 'Sign up') %>
2+
<h1>Sign up</h1>
23
<p>Find me in app/views/users/new.html.erb</p>

config/routes.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
SampleApp::Application.routes.draw do
22
get "users/new"
33
root 'static_pages#home'
4+
match '/signup', to: 'users#new', via: 'get'
45
match '/help', to: 'static_pages#help', via: 'get'
56
match '/about', to: 'static_pages#about', via: 'get'
67
match '/contact', to: 'static_pages#contact', via: 'get'

0 commit comments

Comments
 (0)