Guest User

Untitled

a guest
Jun 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. Error when saving an Artist. It seems to think the ActiveSupport::Multibyte::Chars is an associated record. Converting to string solves the problem.
  2.  
  3. (rdb:1) get_normalised_name(artist_to_save.name)
  4. #<ActiveSupport::Multibyte::Chars:0x105a47a08 @wrapped_string="akon">
  5.  
  6.  
  7. The error occurred while evaluating nil.new_record?
  8. /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:237:in `associated_records_to_validate_or_save'
  9. /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:237:in `select'
  10. /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:237:in `associated_records_to_validate_or_save'
  11. /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:269:in `validate_collection_association'
  12. /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:193:in `send'
  13. /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:193:in `validate_associated_records_for_genres'
  14. /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:178:in `send'
  15. /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:178:in `evaluate_method'
  16. /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:166:in `call'
  17. /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `run'
Add Comment
Please, Sign In to add comment