Forum: Ruby on Rails sortable_element helper query

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Amita B. (Guest)
on 2009-03-01 08:05
Is it possible to call helper method instead of controller action while
using sortable_element helper method?
Ref:
http://api.rubyonrails.org/classes/ActionView/Help...

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?
Gavin (Guest)
on 2009-03-01 13:28
(Received via mailing list)
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
This topic is locked and can not be replied to.