
Untitled
By: a guest on
Jul 4th, 2012 | syntax:
None | size: 0.47 KB | hits: 9 | expires: Never
Different registration process with devise / cancan but only one User model?
devise_for :users, :controllers => { :registrations => "registrations" } do
get '/author/sign_up', :to => 'registrations#new'
get '/client/sign_up', :to => 'registrations#new'
end
- if request.fullpath =~ //author/sign_up/
- session[:registration] = "author"
= render 'author'
- elsif request.fullpath =~ //client/sign_up/
- session[:registration] = "client"
= render 'client' '