Forum: Ruby on Rails After order a HTML with JQuery UI Drag and Drop, save ordered table to DB using Rails

Posted by Guilherme Theodoro Carlos (gtcarlos)
on 2012-11-08 15:15
Hi guys

I'm doing a form with fields like name, email, phone, address, city,
state, etc.

Each field has a table in db.

I will use state field as an example:

In db I had table states with columns: position, name and acronym

In my View I had a HTML table with name and acronym, ordered by position
(when page loads). I can order my table using select box (order by name
or acronym) or using drag and drop.

How could I save my "new table" to db when i click Save button?

Tks!
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.