You should have something like this on your models:
class User < ActiveRecord::Base devise :database_authenticatable, :registerable, :confirmable, :recoverable, :rememberable, :trackable, :validatable end
To remove registration, you must delete the registered module so that the module is as follows:
class User < ActiveRecord::Base devise :database_authenticatable, :recoverable, :confirmable, :rememberable, :trackable, :validatable end
Rodrigo flores
source share