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.
C7da1c726f89b6b7c37e8a22c0e0382d?d=identicon&s=25 Amita Bhatkhande (amita0204)
on 2009-03-01 07: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?
648a71a35ce6e4a1c5cd63451a2a20df?d=identicon&s=25 Gavin (Guest)
on 2009-03-01 12: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.