Skip to content

Instantly share code, notes, and snippets.

@keo
Created November 30, 2010 20:29
Show Gist options
  • Save keo/722338 to your computer and use it in GitHub Desktop.
Save keo/722338 to your computer and use it in GitHub Desktop.
NoMethodError (You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each):
app/models/storypage.rb:112:in `data='
hobo (1.0.1) lib/hobo/model.rb:399:in `send'
hobo (1.0.1) lib/hobo/model.rb:399:in `attributes='
hobo (1.0.1) lib/hobo/permissions.rb:194:in `user_update_attributes'
hobo (1.0.1) lib/hobo/permissions.rb:171:in `with_acting_user'
hobo (1.0.1) lib/hobo/permissions.rb:193:in `user_update_attributes'
hobo (1.0.1) lib/hobo/model_controller.rb:593:in `hobo_update'
app/controllers/storypages_controller.rb:39:in `update'
hobo (1.0.1) lib/hobo/controller.rb:23:in `call'
hobo (1.0.1) lib/hobo/controller.rb:23:in `included_in_class'
compass (0.10.5) lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in `process'
haml (3.0.22) rails/./lib/sass/plugin/rack.rb:41:in `call'
refraction (0.2.0) lib/refraction.rb:125:in `call'
Rendered rescues/_trace (55.9ms)
Rendered rescues/_request_and_response (2.9ms)
Rendering rescues/layout (internal_server_error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment