views:

53

answers:

1

Hello,

I'm developing a website for my University and I got a problem.

There is a page where I have the list of all students of the university. The admin can select some students that will be able to go to a selective process and then he have to see them in other separate page.

How can I do that using Ruby On Rails?

Thanks,

Hugo Henley

+1  A: 

Hi If you want use checkboxes you should write inside your form something similar to <td><%= check_box_tag "user_ids[]", "#{user.id}", true%><%= user.name%></td> then you'll get array od user ids as an params[:user_ids] and you may show only this users on other page

Bohdan Pohorilets