From: Jeremy Woertink Date: 2007-10-04T04:00:13+09:00 Subject: Re: checkbox instead of dropdown Remco Swoany wrote: > Hi, > > I am a RoR newby. The code below shows the categorie names, in a > dropdown from the categories table and that works fine. But now i want > to show the categories through checkboxen. How can i realise that?? > > > > > > Grtz..remco Check out the rails doc http://api.rubyonrails.org/ You would put the check_box inside an iteration. so.. <% @categories.each do |category| %> <%= check_box(category, name) %> <% end %> ~Jeremy -- Posted via http://www.ruby-forum.com/.