Ke Peng
2006-Jul-25 06:59 UTC
[Rails] how to enable a ruby on rails app for multi-row CRUD
Every row in the grid, has a checkbox ahead. pepole can select multi-row through these checkboxes, and then press a [delete] button to delete all the selected rows in a single action. how can i do this? -- Posted via http://www.ruby-forum.com/.
Dr Nic
2006-Jul-25 08:31 UTC
[Rails] Re: how to enable a ruby on rails app for multi-row CRUD
Ke Peng wrote:> Every row in the grid, has a checkbox ahead. pepole can select > multi-row through these checkboxes, and then press a [delete] button to > delete all the selected rows in a single action. how can i do this?Give the checkboxes unique ids that can be parsed back into class ids (e.g. "4-foo-row-checkbox".to_i = 4) and then look for the values in your params. -- Posted via http://www.ruby-forum.com/.