Skip to content

Instantly share code, notes, and snippets.

@gerhard
Created November 21, 2008 21:25
Show Gist options
  • Save gerhard/27637 to your computer and use it in GitHub Desktop.
Save gerhard/27637 to your computer and use it in GitHub Desktop.
Validation failed: Postcode has already been taken
vendor/rails/activerecord/lib/active_record/validations.rb:1021:in `save_without_dirty!'
vendor/rails/activerecord/lib/active_record/dirty.rb:87:in `save_without_transactions!'
vendor/rails/activerecord/lib/active_record/transactions.rb:150:in `save!'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `transaction'
vendor/rails/activerecord/lib/active_record/transactions.rb:138:in `transaction'
vendor/rails/activerecord/lib/active_record/transactions.rb:150:in `save!'
vendor/rails/activerecord/lib/active_record/transactions.rb:158:in `rollback_active_record_state!'
vendor/rails/activerecord/lib/active_record/transactions.rb:150:in `save!'
vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb:53:in `insert_record'
vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:145:in `send'
vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:145:in `send'
vendor/rails/activerecord/lib/active_record/associations.rb:1391:in `after_create_or_update_associated_records_for_addresses'
vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:359:in `method_missing_without_paginate'
vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:212:in `method_missing'
vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:212:in `each'
vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:212:in `send'
vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:212:in `method_missing'
vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:359:in `method_missing_without_paginate'
/opt/local/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.6/lib/will_paginate/finder.rb:167:in `method_missing'
vendor/rails/activerecord/lib/active_record/associations.rb:1391:in `after_create_or_update_associated_records_for_addresses'
vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in `send'
vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in `evaluate_method'
vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in `call'
vendor/rails/activesupport/lib/active_support/callbacks.rb:93:in `run'
vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `each'
vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `send'
vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `run'
vendor/rails/activesupport/lib/active_support/callbacks.rb:277:in `run_callbacks'
vendor/rails/activerecord/lib/active_record/callbacks.rb:315:in `callback'
vendor/rails/activerecord/lib/active_record/callbacks.rb:238:in `create_without_timestamps'
vendor/rails/activerecord/lib/active_record/timestamp.rb:29:in `create'
vendor/rails/activerecord/lib/active_record/base.rb:2691:in `create_or_update_without_callbacks'
vendor/rails/activerecord/lib/active_record/callbacks.rb:222:in `create_or_update'
vendor/rails/activerecord/lib/active_record/base.rb:2375:in `save_without_validation'
vendor/rails/activerecord/lib/active_record/validations.rb:1009:in `save_without_dirty'
vendor/rails/activerecord/lib/active_record/dirty.rb:79:in `save_without_transactions'
vendor/rails/activerecord/lib/active_record/transactions.rb:179:in `send'
vendor/rails/activerecord/lib/active_record/transactions.rb:179:in `with_transaction_returning_status'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `transaction'
vendor/rails/activerecord/lib/active_record/transactions.rb:138:in `transaction'
vendor/rails/activerecord/lib/active_record/transactions.rb:178:in `with_transaction_returning_status'
vendor/rails/activerecord/lib/active_record/transactions.rb:146:in `save'
vendor/rails/activerecord/lib/active_record/transactions.rb:158:in `rollback_active_record_state!'
vendor/rails/activerecord/lib/active_record/transactions.rb:146:in `save'
app/controllers/admin/company_controller.rb:26:in `create'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment