Skip to content

Commit

Permalink
Route correction
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebaldock committed Jul 22, 2014
1 parent 427c7fd commit 1ff0c0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app/views/employee/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
<li>shared parental pay or leave</li>
</ul>

<p><a href="circumstances"><button type="submit" class="medium button">Start</button></a></p>
<p>
<a href="<%=employee_circumstances_url%>">
<button type="submit" class="medium button">Start</button>
</a>
</p>

<h2 class="heading-24">What you need</h2>

Expand Down
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
GovukPrototypingRails::Application.routes.draw do


get '/', to: redirect('/employee')
get "examples/index"
get "examples" => 'examples#index'

Expand All @@ -16,7 +17,6 @@
# See how all your routes lay out with "rake routes".

# You can have the root of your site routed with "root"
root 'employee#index'

# Example of regular route:
# get 'products/:id' => 'catalog#view'
Expand Down

0 comments on commit 1ff0c0d

Please sign in to comment.