Use /signup instead of /an_excellent_meme_reference, and don't use hardcoded paths when redirecting

This commit is contained in:
Jamie Wilkinson 2010-09-16 09:06:56 +08:00 committed by Diaspora
parent a38655bd33
commit 5d87ca0904
2 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ class RegistrationsController < Devise::RegistrationsController
#redirect_to root_url #redirect_to root_url
sign_in_and_redirect(:user, user) sign_in_and_redirect(:user, user)
else else
redirect_to "/get_to_the_choppa" redirect_to new_user_registration_path
end end
end end

View file

@ -29,7 +29,7 @@ Diaspora::Application.routes.draw do
devise_for :users, :controllers => {:registrations => "registrations"} devise_for :users, :controllers => {:registrations => "registrations"}
match 'login', :to => 'devise/sessions#new', :as => "new_user_session" match 'login', :to => 'devise/sessions#new', :as => "new_user_session"
match 'logout', :to => 'devise/sessions#destroy', :as => "destroy_user_session" match 'logout', :to => 'devise/sessions#destroy', :as => "destroy_user_session"
match 'get_to_the_choppa', :to => 'registrations#new', :as => "new_user_registration" match 'signup', :to => 'registrations#new', :as => "new_user_registration"
#public routes #public routes
# #