相关疑难解决方法(0)

Rails 3.2 undefined方法`key?' 为零:NilClass

出于某种原因,我在切换到Rails 3.2后开始出现此错误.我想这与acl9插件有关,我尝试重新安装,但没有任何改变.

我将插件移动到lib/plugins并将初始化程序添加到配置/初始化程序,但同样的错误.

我在Github的acl9 repo上寻找解决方案,但在那里找不到任何东西.也许它毕竟不是acl9.

我安装了paperclip,acl9,authlogic.

NoMethodError (undefined method `key?' for nil:NilClass):
actionpack (3.2.1) lib/action_controller/metal/hide_actions.rb:36:in `visible_action?'
actionpack (3.2.1) lib/action_controller/metal/hide_actions.rb:18:in `method_for_action'
actionpack (3.2.1) lib/action_controller/metal/implicit_render.rb:14:in `method_for_action'
actionpack (3.2.1) lib/action_controller/metal/compatibility.rb:61:in `method_for_action'
actionpack (3.2.1) lib/abstract_controller/base.rb:115:in `process'
actionpack (3.2.1) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.1) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.1) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.1) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.1) lib/action_dispatch/routing/route_set.rb:66:in `call'
actionpack (3.2.1) lib/action_dispatch/routing/route_set.rb:66:in `dispatch'
actionpack (3.2.1) lib/action_dispatch/routing/route_set.rb:30:in `call'
journey (1.0.3) lib/journey/router.rb:68:in `block in call'
journey (1.0.3) lib/journey/router.rb:56:in `each'
journey (1.0.3) lib/journey/router.rb:56:in `call'
actionpack (3.2.1) lib/action_dispatch/routing/route_set.rb:589:in `call' …
Run Code Online (Sandbox Code Playgroud)

plugins ruby-on-rails nomethoderror ruby-on-rails-3.2

22
推荐指数
4
解决办法
3万
查看次数