Skip to content

Instantly share code, notes, and snippets.

@poudelmadhav
Forked from zernel/routes
Created June 4, 2021 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poudelmadhav/782c6f9c1ec1bb559e88f97cf496a0d6 to your computer and use it in GitHub Desktop.
Save poudelmadhav/782c6f9c1ec1bb559e88f97cf496a0d6 to your computer and use it in GitHub Desktop.
Devise disable signup
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