Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you've already installed devise into your app, and want to add "confirmable" later, instead of running:</p> <pre><code>rails generate devise:views </code></pre> <p>as mentioned by Piotr, run</p> <pre><code>rails generate devise:views confirmable </code></pre> <p>to produce only the views needed for "confirmable". You'll see output like this:</p> <pre><code>rails generate devise:views confirmable invoke Devise::Generators::SharedViewsGenerator create app/views/confirmable/mailer create app/views/confirmable/mailer/confirmation_instructions.html.erb create app/views/confirmable/mailer/reset_password_instructions.html.erb create app/views/confirmable/mailer/unlock_instructions.html.erb create app/views/confirmable/shared create app/views/confirmable/shared/_links.erb invoke form_for create app/views/confirmable/confirmations create app/views/confirmable/confirmations/new.html.erb create app/views/confirmable/passwords create app/views/confirmable/passwords/edit.html.erb create app/views/confirmable/passwords/new.html.erb create app/views/confirmable/registrations create app/views/confirmable/registrations/edit.html.erb create app/views/confirmable/registrations/new.html.erb create app/views/confirmable/sessions create app/views/confirmable/sessions/new.html.erb create app/views/confirmable/unlocks create app/views/confirmable/unlocks/new.html.erb </code></pre> <p>You'll then be able to access these files directly in your project to style them like your application. You'll also be able to change the messaging in the emails Devise sends out through the generated mailer views. </p> <p>Last, don't forget to add config.action_mailer.delivery_method and config.action_mailer.smtp_settings in your app/config/environments/{environment_name}.rb file. This is what my production.rb file looks like:</p> <pre><code> config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address =&gt; "smtp.gmail.com", :port =&gt; 587, :domain =&gt; '[redacted]', :user_name =&gt; '[redacted]', :password =&gt; '[redacted]', :authentication =&gt; 'plain', :enable_starttls_auto =&gt; true } </code></pre>
 

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