# selected checkbox  in Controller!!!!

**URL:** <https://discuss.rubyonrails.org/t/selected-checkbox-in-controller/47641>\
**Category:** rubyonrails-talk\
**Created:** [November 19, 2009, 7:53pm UTC](https://discuss.rubyonrails.org/t/selected-checkbox-in-controller/47641 "2009-11-19T19:53:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simoha](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@simoha](https://discuss.rubyonrails.org/u/simoha)\
**Post date:** [November 19, 2009, 7:53pm UTC](https://discuss.rubyonrails.org/t/selected-checkbox-in-controller/47641/1 "2009-11-19T19:53:56Z")

</div>

hi, I have the following problem:

product.controller.rb

class Product Controller

def show ..... end

end

show.rhtml.rb . . &nbsp;&nbsp;&nbsp;&nbsp;\<% Product.find (: all). each do | product| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<% = Check\_box "product", "name",: checked =\> false,: onchange =\> "# (remote\_function (: url =\> (: controller =\> 'product',: action =\> 'show') )) "%\> \<br\> \<% End%\> how can i get all the selected checkboxes in the show-action(controller)?

Thnaks im advance
