开发者

Devise gem not working for IE8 in staging (but works for Chrome and Firefox)

开发者 https://www.devze.com 2023-02-03 01:27 出处:网络
We use devise 1.0.6 (Ruby 1.9.2 / Rails 2.3.8) for authentication. For some reason on staging, user authentication seems to be not working in IE8 because, when registered users log in, they did not g

We use devise 1.0.6 (Ruby 1.9.2 / Rails 2.3.8) for authentication.

For some reason on staging, user authentication seems to be not working in IE8 because, when registered users log in, they did not get redirected to their own desk page (desk_user_url, see below). They 开发者_开发知识库got redirected to the landing (home) page instead.

=====

class MainController < ApplicationController
  skip_before_filter :authenticate_user!, :except => [:support]
  protect_from_forgery :except => :community

  def landing
    if user_signed_in?
      redirect_to desk_user_url
      return
    end
  end

======

However, it works just fine in Chrome and Firefox.

Any ideas on how to fix this? Is this a problem with devise or is it something else?

Thanks.


Internet Explorer ignores cookies on some domains (cannot read or set cookies)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号