【问题标题】:Devise gem not working for IE8 in staging (but works for Chrome and Firefox)设计 gem 在暂存时不适用于 IE8(但适用于 Chrome 和 Firefox)
【发布时间】:2011-01-04 21:26:48
【问题描述】:

我们使用 devise 1.0.6 (Ruby 1.9.2 / Rails 2.3.8) 进行身份验证。

由于某些原因,用户身份验证在 IE8 中似乎不起作用,因为当注册用户登录时,他们没有被重定向到自己的桌面页面(desk_user_url,见下文)。他们被重定向到登陆(主页)页面。

=====

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

======

但是,它在 Chrome 和 Firefox 中运行良好。

关于如何解决这个问题的任何想法?这是设计的问题还是其他原因?

谢谢。

【问题讨论】:

  • 暂存中?域名是什么样的?它是带有下划线的子域吗?

标签: ruby-on-rails internet-explorer-8 rubygems devise


【解决方案1】:

【讨论】:

  • 似乎 cookie 中存在某种冲突(由 IE8),因为我正在测试暂存和生产。谢谢指点。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-08-03
  • 2012-01-27
  • 2012-02-14
相关资源
最近更新 更多