In your custom class just add
class User < ActiveRecord::Base devise :database_authenticatable, :registerable #...etc before_save :ensure_authentication_token end
what is a development method that will set your authentication_token.
Jesse wolgamott
source share