Skip to content

Instantly share code, notes, and snippets.

@KensoDev
Created May 9, 2012 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KensoDev/2645424 to your computer and use it in GitHub Desktop.
Save KensoDev/2645424 to your computer and use it in GitHub Desktop.
plan.update_attributes!({:contract_id_with_trial => 2133290})
NoMethodError: undefined method `relation' for nil:NilClass
/app/.bundle/gems/ruby/1.9.1/gems/arel-2.0.9/lib/arel/crud.rb:12:in `update'
/app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.0.3/lib/active_record/persistence.rb:255:in `update'
/app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.0.3/lib/active_record/locking/optimistic.rb:77:in `update'
/app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.0.3/lib/active_record/attribute_methods/dirty.rb:68:in `update'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment