Commit Graph

7 Commits

Author SHA1 Message Date
José Valim 4d8f5ea165 Add an easy way to configure an application to sign in users through "/sign_in".
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
2010-01-06 14:31:00 +01:00
Carlos Antonio da Silva fc89db636a Refactoring tests with I18n. 2009-11-23 23:01:00 -02:00
José Valim 415bcdc722 Added scoped views support. Just turn it on in your Devise.setup. 2009-11-21 20:07:37 -02:00
José Valim b70b293690 Add authentication_keys. 2009-11-15 03:31:13 -02:00
José Valim e6901686c4 Authentication fail with user cannot be serialized from session [#29] 2009-11-10 00:00:40 -02:00
José Valim 1db50dee36 Skip authentication filters by default on Devise controllers and add devise_controller? to select/reject other filters. 2009-11-06 09:33:18 -02:00
José Valim b28d7e8b1c Renamed authenticable to authenticatable and added deprecation warnings. 2009-10-30 08:29:10 -02:00