Created
October 24, 2012 03:12
-
-
Save zernel/3943463 to your computer and use it in GitHub Desktop.
Devise disable signup
This file contains hidden or 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
| devise_for :users, :skip => [:registrations] | |
| as :user do | |
| get 'users/edit' => 'devise/registrations#edit', :as => 'edit_user_registration' | |
| put 'users' => 'devise/registrations#update', :as => 'user_registration' | |
| end | |
| # And then modify the app/views/devise/shared/_links.erb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I agree with @CoryFoy, removing
:registerablefrom the model makes thesign uplink not to be rendered in the form and the route not being generated.