mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-20 04:08:14 -05:00
First, configure your routes: map.devise_for :users map.sign_in "/sign_in", :controller => "sessions", :action => "new" Then, in config/initializers/devise.rb: config.use_default_scope = true The default scope is always the first declaration in routes.rb, but if you need to change it, you can also do it through the initializer: config.default_scope = :user