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?

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs