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

  • Home
  • SEARCH
  • 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 6935621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:07:37+00:00 2026-05-27T12:07:37+00:00

Background: I’ve been trying for months to upgrade devise to the latest version, but

  • 0

Background:
I’ve been trying for months to upgrade devise to the latest version, but the major stumbling block seems to be a change introduced in 1.2.0, so I’m focusing on upgrading to 1.2.0 right now. All the devise flash messages are correctly showing up in 1.1.7 and none of the devise flash message are showing up in 1.2.1. The ONLY change between the messages working to not working is the devise upgrade. For the purpose of this question, I’ll focus on the sessions controller flash messages, but all other devise flash messages stopped working.

In 1.1.7:
In the sessions#new form, I type in a correct email and an INVALID email. I click submit. I get the flash[:alert]: “Invalid email or password.”

In 1.2.1:
In the sessions#new form, I type in a correct email and an INVALID email. I click submit. I get no alert.

SessionsController:

class User::SessionsController < Devise::SessionsController
  layout "no_chrome", :only => :new
  skip_authorization_check
  before_filter :sign_out_all_scopes, :only => %w[new create]
  protect_from_forgery :except => [:new, :create]
  skip_before_filter :verify_authenticity_token

  def create
    super
  end
end

The view: sessions/new.html.erb

<div class="form_container">
  <%= flash_div(:alert) %>
  <%= simple_form_for @user, :url => user_session_path do |form| %>
      <%= form.input :email %>
      <%= form.input :password, :required => true %>
      <%= form.submit "Sign in", :class=>"purple submit_button" %>
  <% end %>
</div>

In application_helper.rb

  def flash_div(kind)
    unless flash[kind].blank?
      text = "<p>#{flash[kind]}</p>"
      content_tag :div, text.html_safe, :id => "flash", :class => kind
    end
  end

Any help would be greatly appreciated as I’ve been trying to do this upgrade on and off for months. I also want to point out that everything besides the flash messages is working after the upgrade.

SOLUTION:

Remove before_filter :sign_out_all_scopes

  • 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-27T12:07:37+00:00Added an answer on May 27, 2026 at 12:07 pm

    Remove before_filter :sign_out_all_scopes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background I am trying to create a copy of a business object I have
Background I have been asked by a client to create a picture of the
Background I'm customising a tumblr theme (Source: hasaportfolio ), and I am trying to
Background: I am trying to add data to a SQL DB with C#. I
Background I've recently been a part of a project where twisted was used. We
Background: This is really a general best-practices question, but some background about the specific
Background In the spirit of continuous integration, I'm trying to automate our deployment process
Background: As a short project over winter break, I'm trying to implement a programming
Background I'm trying to implement a simple web server part as a web interface
BACKGROUND: Co-worker Adam has been using Google refine to process database downloads with much

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.