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.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to