D
D
dexdev2014-02-01 19:21:17
Ruby on Rails
dexdev, 2014-02-01 19:21:17

How to request email confirmation in devise?

The fact is that you need to ask the user to confirm the email if he did not confirm it, how to do this?
and display on certain pages the user's confirmed email exactly the confirmed email (for moderators and admins)
something like <

% if confirmation.present? %>
 <% @user.email %>
<% else %>
пользователь не подтвердил емайл
<%  end %>

rails 4
devices (3.2.1)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
himik, 2014-02-02
@AdilA

if @user.confirmed?
  # ...
else
  @user.send_confirmation_instructions 
end

read

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question