Let's add a sortable option for the has_many formbuilder #880

michaek opened this Issue Dec 23, 2011 · 3 comments


None yet

4 participants


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

The feature will only update the value of the hidden field, which would only be persisted to the database upon submitting the form.




Moved to #881

@jpmckinney jpmckinney closed this Aug 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment