Re: [Rails] sortable_element rails3
Hey man, what's up?
I was thinking, maybe you should try to implement it from scratch,
It seems you just need to add a position field in your database, and start to use
A jquery plugin for drag and drop. After move things around,
You can collect all ids through jquery and send a Ajax call to your controller to update all position fields of elements.
It seems not that hard. What do you thing about it?
Nice day
Sent via iPhone
HelloI'm upgrading a rails2 app to rails3 and I'm struggling to find a replacement for sortable_element.I was using it and acts_as_list so users could reorder list items with drag and drop, and the reordering would write a new position of the object into the database.Does anyone have any links or anything that I could read to help me?I've found Ryan Bates revised example, paid for content though and I'm waiting for someone in the company to OK the massive expenditure of $9 per month.I also found this, which looked helpfulBut that seems to have disappeared from rubygems.Alot of people are linking to this example as wellThat persons account has been deactivated.Ever get the feeling you're having the runaround?Any help or links or tips will be greatly appreciated, as always.V--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e4ed9252-0eac-4bfd-9759-0657e8a25b4a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home