Coder Social home page Coder Social logo

Comments (5)

cfis avatar cfis commented on August 31, 2024

Sorry not to have seen this earlier. Is this still an issue with the latest versions of CPK?

from composite_primary_keys.

cfis avatar cfis commented on August 31, 2024

Haven't heard back, closing.

from composite_primary_keys.

elthariel avatar elthariel commented on August 31, 2024

This is still an issue for 4.1.2. I'm stuck with rails 3.1.x and still have a pretty close issue

NoMethodError: undefined method `to_sym' for [:target_id, :type_id]:CompositePrimaryKeys::CompositeKeys
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/base.rb:1410:in `block in expand_hash_conditions_for_aggregates'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/base.rb:1409:in `each'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/base.rb:1409:in `expand_hash_conditions_for_aggregates'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/relation/query_methods.rb:261:in `build_where'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/relation/query_methods.rb:124:in `where'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/nested_attributes.rb:396:in `assign_nested_attributes_for_collection_association'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/nested_attributes.rb:287:in `filters_attributes='
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/base.rb:1758:in `block in assign_attributes'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/base.rb:1754:in `each'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/base.rb:1754:in `assign_attributes'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/persistence.rb:162:in `block in update_attributes'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/connection_adapters/abstract/database_statements.rb:194:in `transaction'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/transactions.rb:208:in `transaction'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
    from /home/lta/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.1.8/lib/active_record/persistence.rb:161:in `update_attributes'
    from (irb):1

from composite_primary_keys.

elthariel avatar elthariel commented on August 31, 2024

Same behavior for 5.0.8

from composite_primary_keys.

jspillers avatar jspillers commented on August 31, 2024

I am seeing the same error on 5.0.9 when trying to update an associated object via accepts_nested_attributes_for

from composite_primary_keys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.