NoMethodError(#hash的未定义方法`gsub':0x00000102ec5ab0>):</hash:0x00000102ec5ab0>

时间:2011-12-22 02:45:35

标签: ruby-on-rails ruby-on-rails-3

在我的任何控制器中,使用设计我有:

before_filter :authenticate_user!

如果我没有登录,则从设计到登录的重定向无效。相反,我收到以下错误:

Started GET "/settings/account" for 127.0.0.1 at 2011-12-21 18:43:20 -0800
  Processing by SettingsController#account as HTML
Completed 401 Unauthorized in 3ms

NoMethodError (undefined method `gsub' for #<Hash:0x000001070a0a20>):


Rendered /Users/xxx/.rvm/gems/ruby-1.9.2-p180@andyw/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /Users/xxx/.rvm/gems/ruby-1.9.2-p180@andyw/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.2ms)
Rendered /Users/xxx/.rvm/gems/ruby-1.9.2-p180@andyw/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.5ms)

有关如何调试此问题的任何想法?感谢

0 个答案:

没有答案