Rails:NoMethodError([]:Array的未定义方法`submitting')

时间:2010-09-06 08:58:46

标签: ruby-on-rails rubygems

NoMethodError (undefined method `submitting' for []:Array):
   haml (2.2.0) lib/sass/plugin/rails.rb:19:in `process_without_compass'
   compass (0.8.17) lib/compass/app_integration/rails/action_controller.rb:7:in `process'
  /usr/local/lib/ruby/gems/1.8/gems/hoptoad_notifier-2.3.6/lib/hoptoad_notifier/rack.rb:27:in `call'

得到这样的错误 如果有人对此有任何想法吗?

1 个答案:

答案 0 :(得分:0)

很难说没有看到你的代码,但似乎你试图访问数组上的方法而不是模型对象。您是将一组对象传递给视图而不是只传递一个对象吗?