Skip to content

Commit

Permalink
Registrations routing is completed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Chyzhykov committed Nov 2, 2011
1 parent 6316ae6 commit ff24b2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions config/routes.rb
Expand Up @@ -6,10 +6,13 @@
resources :forums, :except => :index

resources :categories, :except => :show

devise_for :users do
devise_for :users, :skip => [:registrations] do
# registrations
get 'signup' => 'devise/registrations#new', :as => :signup
get 'signup' => 'devise/registrations#new', :as => :new_user_registration
post 'signup' => 'devise/registrations#create', :as => :user_registration
get 'users/edit' => 'devise/registrations#edit', :as => :edit_user_registration
put 'users' => 'devise/registrations'

# sign up
get 'signin' => 'devise/sessions#new', :as => :signin
Expand Down
2 changes: 1 addition & 1 deletion features/support/paths.rb
Expand Up @@ -5,7 +5,7 @@ def path_to(page)
root_path

when /the sign up page/
signup_path
new_user_registration_path

when /the sign in page/
signin_path
Expand Down

0 comments on commit ff24b2c

Please sign in to comment.