Sortable_element helper query


#1

Is it possible to call helper method instead of controller action while
using sortable_element helper method?
Ref:
http://api.rubyonrails.org/classes/ActionView/Helpers/ScriptaculousHelper.html

The url field in the example is like controller/action type. Can we call
ControllerHelper method instead? Because we need to save the sorted
element in the database, so my guess was to call a method in a model.
Any clues?


#2

Why not call a controller action which, in turn calls your model
methods and saves?

Check out Railscast 147 - Ryan explains how to create a quick sortable
list:

http://railscasts.com/episodes/147-sortable-lists