I am currently trying to program my first ajax interface using Rails.
The application currently shows a table populated with list items. The user has to approve or reject each of the list items. I currently have an edit link at the end of each row that shows a form in which I can approve the list item.
I am thinking on using a checkbox instead of the edit link. When the user clicks the checkbox I want to update the database with the status, user name and date/time without leaving this page.
- What steps should I follow?
- Can I use a checkbox or am I restricted to buttons?
- What xxx_remote helper should I use?
- How can I update the checkbox state with the results of the ajax call?