Skip to content

Commit

Permalink
Add a named route to access the Wizard
Browse files Browse the repository at this point in the history
This lets us use the wizard_path inside the views which will correctly detect
if we are running from a sub-folder behind apache (e.g. /dradis/wizard).

I have also updated the link to the Wizard in the login page.

This commit refs #5
  • Loading branch information
Daniel Martin committed Jul 21, 2011
1 parent cd08960 commit 32a156c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/sessions/new.html.erb
@@ -1,4 +1,4 @@
<p id="wizard">Not familiar with Dradis? Checkout the <a href="/wizard">Wizard</a>.</p>
<p id="wizard">Not familiar with Dradis? Checkout the <%= link_to 'Wizard', wizard_path %></a>.</p>
<p>You will only be able to log in if you know this server's password.</p>

<%= form_tag session_path do -%>
Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
Expand Up @@ -4,6 +4,8 @@
match '/login' => 'sessions#new', :as => :login
match '/logout' => 'sessions#destroy', :as => :logout

match '/wizard' => 'wizard#index', :as => :wizard

resources :configurations
resources :categories
resources :feeds
Expand Down

0 comments on commit 32a156c

Please sign in to comment.