I\'m trying to remove/disable the user/sign_up
path from Devise. I\'m doing this because I don\'t want random people gaining access to the application. I have it p
I just had the same issue. My solution is a mix of these answers.
:registerable
in user.rb
:class User < ActiveRecord::Base
devise :database_authenticatable, #:registerable,
:recoverable, :rememberable, :trackable, :validatable
end
devise_for
in routes.rb
:devise_for :users, :skip => [:registrations], controllers: {
sessions: 'users/sessions'
}
Now Devise will skip all of the registration links from their view and also you no longer have the registration paths on your routes.