RailsCasts Pro episodes are now free!

Learn more or hide this

acandael's Profile

GitHub User: acandael

Comments by


when I tail the development log, I see this error message:

Started POST "/admin/sections" for at 2014-11-13 20:49:51 +0100
Processing by Admin::SectionsController#create as /
Parameters: {"section"=>["3", "4", "6", "2", "5"]}
Completed 500 Internal Server Error in 1ms

NoMethodError (undefined method permit' for ["3", "4", "6", "2", "5"]:Array):
app/controllers/admin/sections_controller.rb:15:in `create'


I'm trying to implement sortable rows in my Rails 4 application. For some reason dragging a row doesn't save the position in the database. I'm not sure whether the sort action method gets called.
When I check the Javascript console with Google developer tools no Javascript errors are thrown, so I'm not sure what's the problem.

My code is at:

anyone else got issues implement this drag and drop functionality for a Rails 4 application?

thanks for your help,