Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>to "enable" confirmable, you just need to add it to your model, e.g.:</p> <pre><code>class User # ... devise :confirmable , .... # ... end </code></pre> <p>after that, you'll have to create and run a migration which adds the required columns to your model:</p> <pre><code># rails g migration add_confirmable_to_devise class AddConfirmableToDevise &lt; ActiveRecord::Migration def self.up add_column :users, :confirmation_token, :string add_column :users, :confirmed_at, :datetime add_column :users, :confirmation_sent_at , :datetime add_column :users, :unconfirmed_email, :string add_index :users, :confirmation_token, :unique =&gt; true end def self.down remove_index :users, :confirmation_token remove_column :users, :unconfirmed_email remove_column :users, :confirmation_sent_at remove_column :users, :confirmed_at remove_column :users, :confirmation_token end end </code></pre> <p>see: <a href="https://stackoverflow.com/questions/3034784/adding-confirmable-module-to-an-existing-site-using-devise">Adding confirmable module to an existing site using Devise</a></p> <p>I'd recommend to check the source code to see how Confirmable works:</p> <p><a href="https://github.com/plataformatec/devise/blob/master/lib/devise/models/confirmable.rb" rel="nofollow noreferrer">https://github.com/plataformatec/devise/blob/master/lib/devise/models/confirmable.rb</a></p> <p>You could also check the RailsCast on Devise:</p> <p><a href="http://railscasts.com/episodes/209-introducing-devise" rel="nofollow noreferrer">http://railscasts.com/episodes/209-introducing-devise</a></p> <p>Next it would be best to search for example applications on GitHub</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload