Guest User

Untitled

a guest
Jul 13th, 2013
479
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ActiveRecord::UnknownPrimaryKey: Unknown primary key for table line_items in model LineItem.
  2. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.0.rc1/lib/active_record/reflection.rb:391:in `primary_key'
  3. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.0.rc1/lib/active_record/reflection.rb:226:in `association_primar
  4. y_key'
  5. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.0.rc1/lib/active_record/associations/has_many_association.rb:131
  6. :in `foreign_key_present?'
  7. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.0.rc1/lib/active_record/associations/association.rb:170:in `find
  8. _target?'
  9. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.0.rc1/lib/active_record/associations/collection_association.rb:3
  10. 57:in `load_target'
  11. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.0.rc1/lib/active_record/associations/collection_proxy.rb:45:in `
  12. load_target'
  13. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.0.rc1/lib/active_record/associations/collection_proxy.rb:920:in
  14. `to_ary'
  15. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.0.rc1/lib/active_record/relation.rb:549:in `inspect'
  16. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc1/lib/rails/commands/console.rb:90:in `start'
  17. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc1/lib/rails/commands/console.rb:9:in `start'
  18. from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc1/lib/rails/commands.rb:66:in `<top (required)>'
  19. from bin/rails:4:in `require'
  20. from bin/rails:4:in `<main>'
RAW Paste Data