Sono nel mezzo del mio aggiornamento e sto incontrando alcuni problemi.Uprgrading to Rails 4.1 ottenendo errore: ArgumentError: Chiave sconosciuta:: order
Ecco il mio errore:
/Users/jay/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.6/lib/active_support/core_ext/hash/keys.rb:71: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 (ArgumentError)
Ha qualcosa a che fare con i miei scopi? Per esempio:
scope :total_views, order('total_views DESC')
o
default_scope { order: :sort_order }
o
scope :recent, order: 'created_at desc'
ho mucchio di ambiti che utilizzano ordine, cosa sta succedendo?
Ho avuto questo problema e penso che abbia radici in act_as_tree. – mcr