Closed eriknomitch closed 9 years ago
I am having the same issue. Did you find a solution?
Nope, tried but I couldn't find anything... Not much mention of "order" in the Gem.
I think it may be coming from awesome_nested_set
Very possible. I believe I swapped out that gem with their GitHub to no avail.
Add this in your Gemfile. will resolve it:
gem 'awesome_nested_set', '>= 3.0.0.rc.5'
The 2.0.0 version of the gem depends on the released 3.0.0 version of awesome_nested_set, which fixes this issue. Please update to 2.0.0
gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/core_ext/hash/keys.rb:75:in `block in assert_valid_keys': Unknown key: :order. Valid keys are: :class_name, :class, :foreign_key, :validate, :autosave, :table_name, :before_add, :after_add, :before_remove, :after_remove, :extend, :primary_key, :dependent, :as, :through, :source, :source_type, :inverse_of, :counter_cache, :join_table, :foreign_type (ArgumentError)
gem 'awesome_nested_set', '2.0.0' - I used same way. Still facing same issue.
ArgumentError: Unknown key: :order
is happening onComment.all
and the commentable model's.comment_threads
and.root_comments
methods in Rails 4.1.4.Edit: I'd really like to add this into Prelang as soon as possible.