Guest User

Untitled

a guest
Jan 23rd, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. constraints(SproutSubdomain) do
  2. devise_for :accounts, :skip => [:session, :password],
  3. :controllers => {
  4. :registrations => "users/accounts/registrations",
  5. :confirmations => "users/accounts/confirmations" },
  6. :class_name => 'Admin' do
  7. get "accounts/sign_up", :to => "users/accounts/registrations#new"
  8. get "accounts/signedup", :to => "users/accounts/confirmations#signedup", :as => "signedup_registration"
  9. end
  10.  
  11.  
  12. root :to => "users/accounts/registrations#new"
  13. # this root matcher above throws this error: Could not find devise mapping for path "/". Maybe you forgot to wrap your route inside the scope block? For example: devise_scope :user do match "/some/route" => "some_devise_controller" end
  14.  
  15. end
Add Comment
Please, Sign In to add comment