Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error when saving an Artist. It seems to think the ActiveSupport::Multibyte::Chars is an associated record. Converting to string solves the problem.
- (rdb:1) get_normalised_name(artist_to_save.name)
- #<ActiveSupport::Multibyte::Chars:0x105a47a08 @wrapped_string="akon">
- The error occurred while evaluating nil.new_record?
- /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'
- /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:237:in `select'
- /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'
- /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'
- /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:193:in `send'
- /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'
- /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:178:in `send'
- /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:178:in `evaluate_method'
- /Users/karl/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:166:in `call'
- /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