Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add entry to CHANGELOG.

  • Loading branch information...
commit 8e3ef2a620b85aa1dc55408bc34fcf440efbcf1c 1 parent aefcd53
José Valim josevalim authored
Showing with 13 additions and 2 deletions.
  1. +5 −1 CHANGELOG.rdoc
  2. +8 −1 lib/devise/rails/routes.rb
6 CHANGELOG.rdoc
View
@@ -1,5 +1,9 @@
* enhancements
- * Rememberable module allows user to be remembered across browsers; enabled by default (by github.com/trevorturk)
+ * Rememberable module allows user to be remembered across browsers and is enabled by default (by github.com/trevorturk)
+ * devise_for can now be used together with scope method in routes but with a few limitations (check the documentation)
+
+* deprecation
+ * :path_prefix option in devise_for is no longer supported
* bug fix
* Fix a bug in Devise::TestHelpers where current_user was returning a Response object for non active accounts;
9 lib/devise/rails/routes.rb
View
@@ -98,10 +98,17 @@ class Mapper
# end
# end
#
+ # Second, since Devise expects routes in the format "user_session_path" to be defined, you cannot
+ # scope to a given route name as below:
+ #
+ # scope "/special_scope", :as => :special_scope do # THIS WILL FAIL
+ # devise_for :users
+ # end
+ #
# Finally, Devise does not (and cannot) support optional segments, either static or dynamic. That
# said, the following does not work:
#
- # scope "(/:locale)" do
+ # scope "(/:locale)" do # THIS WILL FAIL
# devise_for :users
# end
#
Please sign in to comment.
Something went wrong with that request. Please try again.