daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top