ruby on rails 3 - acts_as_nested_set *** ArgumentError Exception: Unknown key: :order -


upgrading rails3.2.21 4.1.9 , in class have use acts_as_nested_set , there has_many relation between 2 class
see below code

class area < activerecord::base     acts_as_nested_set     has_many :plans end  class plan < activerecord::base      belongs_to :area end 

when try calculate

p = plan.first  p.area     

through error on terminal like-

actionview::template::error (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): 

how fix it?

this issue because have use gem

gem 'awesome_nested_set', '~> 2.1.6'

and have update gem file , add gem

gem "awesome_nested_set", '~> 3.0.0.rc.3'

issue fixed now


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -