Hi,
I have a list of items displayed on my page.
- Item A [Edit]
- Item B [Edit]
- Item C [Edit]
Each item is editable When you click on a edit icon. The edit form is displayed with a ajax call and the controller return a form.
- Edit form for Item A [Save]
- Item B [Edit]
- Item C [Edit]
But all the list is bulk editable and so each item has also a checkbox next to it.
- [cb] Item A [Edit]
- [cb] Item B [Edit]
- [cb] Item C [Edit]
And a form is around the list.
form_tag 1. [cb] Item A [Edit] 2. [cb] Item B [Edit] 3. [cb] Item C [Edit] Action: select action [Bulk Edit] end
So when I click on a item edit button, since a form is returned, I have 2 forms nested. And all the code breaks.
What can I do so I don't have the bulk edit form around all the items and end with 2 nested forms ?
Thanks, Mickael.