Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7054357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:37:00+00:00 2026-05-28T03:37:00+00:00

I am developing a Rails 3 app using the Devise gem for authentication. I’m

  • 0

I am developing a Rails 3 app using the Devise gem for authentication. I’m also using the confirmable module of Devise to send emails to users when they sign up, asking them to confirm their email address.

I am allowing users to sign in even if they didn’t confirm their email address (for a maximum of 20 days), however I want to display a message at the top of every page reminding them they didn’t confirm their email address and that they can still login without doing so for X number of days.

Any ideas of how I should approach this? (i.e. any useful gems or tips)

Thanks very much !!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:37:01+00:00Added an answer on May 28, 2026 at 3:37 am

    Looking at the docs here: http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Confirmable

    It seems there is a confirmed? method that you can call on the User object to see if they are confirmed or not.

    So I would just put a check for the confirmation in your views/layouts/application.html.erb file:

    <% if user_signed_in? && !current_user.confirmed? %>
      <div>
        Please confirm your account by clicking the link in the email we sent to <%= current_user.email %>
      </div>
    <% end %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a Rails App and am using Devise for authentication. For some odd
I'm using the RESTful authentication Rails plugin for an app I'm developing. I'm having
I am developing a Rails app using OmniAuth, OmniAuth-salesforce and this gem: https://github.com/heroku/databasedotcom I
I'm developing a Rails 3 app using Devise and CanCan. The app allows anonymous
I am developing a web app (using rails) that I will be launching within
I have started developing a new Rails app on my server using RVM, Rails
I'm developing a rails 3.0.9 app, I'm using accept nested attributes for to add
I am using MySQL v5.1. I am developing a Rails app. and writing a
I have a Rails 3 app I'm developing with a team using Git/Github and
i am developing a app and have been for a while using Rails 2.3.4

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.