[Rails] How to save values from Sortable Unordered List?
I've a sortable unordered list as follows. How do I use controller to detect this element and get the contents to save each LI item into a row in the database?
<li id="todo-163"><span class="editable">1. Good</span> <a href="#" style="display: none;">X</a></li>
<li id="todo-190"><span class="editable">2. Better</span> <a href="#" style="display: none;">X</a></li>
<li id="todo-189"><span class="editable">3. Best</span> <a href="#" style="display: none;">X</a></li>
</ul>
-- 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/ab8e31a4-2025-4179-a258-7acb0b7d2e3b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home