We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
I'm trying to incorporate nested sortable with my Rails 3 app. I'm using the Ancestry gem currently.
Having difficulty finding out how to create a proper update controller that captures the parent_id and updates the tree with that value.
parent_id
Is it better to use serialize, or toArray?
serialize
toArray
This is what I have in my controller now:
def sort Category.update_all({parent_id: params[:parent_id].to_i}) render nothing: true end
Do you have any tips? Thanks