Using orderable in rails_admin for a has_many :through relationship in rails 4

Viewed 1139

I'm trying figure out how to use ordering with position as given in the example at https://github.com/sferik/rails_admin/wiki/Has-many-%3Athrough-association, but without using protected attributes, and instead using Rails 4's strong parameters. If I try to use the block_ids= function given on the page without attr_accessible :block_ids, I get an ActiveRecord::UnknownAttributeError error with message unknown attribute :block_ids. Obviously if I use attr_accessible :block_ids, it asks me to add protected_attributes to my Gemfile, which wouldn't be the Rails 4 way.

Has anyone been able to make orderable position work in rails_admin for Rails 4 using strong parameters?

1 Answers
Related