activeadmin_sortable_table
activeadmin_sortable_table copied to clipboard
Drag and drop sort interface for ActiveAdmin tables
I'm migrating Rails 5 to Rails 6. Rails 6 is using webpacker. So I hope this gem will support Rails 6 and webpacker 4 project. Thanks!
Getting this error: ```ruby undefined method `move_to_top_admin_dashboard_section_path' for # ``` While I am actually rendering a table for the parent class `Section`. URL helper derived incorrectly.
Getting `ActionController::InvalidAuthenticityToken` whenever an item is dragged to order. ``` Started POST "/admin/shares/163/sort" for ::1 at 2019-10-07 12:15:09 +0500 Processing by Admin::SharesController#sort as */* Parameters: {"id"=>"163"} Can't verify CSRF token...
The namespace should be taken from the Registered Page: `ActiveAdmin.register Thing, namespace: :something do` It currently assumes `admin` https://github.com/bolshakov/activeadmin_sortable_table/blob/master/lib/active_admin/sortable_table/handle_column.rb#L22-L25