You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would add a jQuery UI sortable to the items in a has_many, with the :sortable parameter accepting the field the sortable should update. That field would need to be included in the fields for the associated model - for example:
f.has_many :images, :sortable => :sort do |i|
i.input :image
i.input :sort, :as => :hidden
end
The feature will only update the value of the hidden field, which would only be persisted to the database upon submitting the form.