Skip to content

Instantly share code, notes, and snippets.

@wnstn
Created April 12, 2012 19:08
Show Gist options
  • Save wnstn/2370202 to your computer and use it in GitHub Desktop.
Save wnstn/2370202 to your computer and use it in GitHub Desktop.
NoMethodError in SongsController#add_roles
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
Rails.root: /Users/CS_Spare/Sites/rails/minorbeat
Application Trace | Framework Trace | Full Trace
app/controllers/songs_controller.rb:19:in `add_roles'
app/controllers/application_controller.rb:49:in `catch_exceptions'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment