I posted this last month and unfortunately, I didn’t recieve any
replies. Maybe this time I’ll have better luck. I originally had my
sortable element list working properly like so:
I posted this last month and unfortunately, I didn’t recieve any
replies. Maybe this time I’ll have better luck. I originally had my
sortable element list working properly like so:
I think it may not be getting the proper items or IDs to set them to
“sortable elements”. Does anybody have any ideas?
Thanks in advance. By the way, I am very new to rails, please let me
know if you need anything else to help solve the problem.
Jordan,
Try passing the object you’re using to your partial like this:
<%= render(:partial => ‘item’, :collection => @items,:locals => {:item
=> item}) %>
Then when you want to modify the item use:
{ :action => ‘edit_item’, :id => item }
for example.
I hope that’s enough to help.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.