Created
October 23, 2010 15:38
-
-
Save lightscalar/642332 to your computer and use it in GitHub Desktop.
Or: How to leave my UsersController the hell alone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We're working in a Rails 3 App with devise attached to the user model | |
In routes.rb, if we write: | |
devise_for :users, :path => 'u' | |
Then we can obviate all the problems with nested resources. Now users will be directed to /u/sign_in and so forth. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment