Problem with Check box tag

Hai Just started to learn Ruby on Rails I have a list of users displayed as rows and towards each row there is a check box. There is a "Select All" , and "Approve" buttons. On clicking the Select All button I want to check all the check boxes or can check the boxes separtely if don't want to check all the boxes and then after submitting the Approve button wish to change the status of the selecteds users(which users whose check box is checked) to approved. Pls give me suggestions in doing this. Thanks in advance

Indu Rs wrote:

Hai Just started to learn Ruby on Rails I have a list of users displayed as rows and towards each row there is a check box. There is a "Select All" , and "Approve" buttons. On clicking the Select All button I want to check all the check boxes or can check the boxes separtely if don't want to check all the boxes and then after submitting the Approve button wish to change the status of the selecteds users(which users whose check box is checked) to approved. Pls give me suggestions in doing this. Thanks in advance

Do you have any code examples? One whay to do what you are saying what I think you are saying, is to have a check_box connected with a remote_function that hits the controller, does some stuff and then returns to update a div. I use the remote_function to update a single user in my app or, like what you are trying to do, multiple users. By doing it this way you can update a single div without having to reload the page.