Skip to content

Instantly share code, notes, and snippets.

@lightscalar
Created October 23, 2010 15:38
Show Gist options
  • Save lightscalar/642332 to your computer and use it in GitHub Desktop.
Save lightscalar/642332 to your computer and use it in GitHub Desktop.
Or: How to leave my UsersController the hell alone
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