# Get all checked checkbox!

**URL:** <https://www.ruby-forum.com/t/get-all-checked-checkbox/179217>\
**Category:** Rails\
**Created:** [November 19, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/get-all-checked-checkbox/179217 "2009-11-19T21:12:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@simo](https://www.ruby-forum.com/u/simo)\
**Post date:** [November 19, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/get-all-checked-checkbox/179217/1 "2009-11-19T21:12:35Z")

</div>

hi,  
I have the following problem:

**product.controller.rb**

class Product Controller

def show  
…  
end

end

**show.html.rb**   
.  
.  
\<% Product.find (: all). each do | product|  
\<% = Check\_box “product”, “name”,: checked =\> false,: onchange =\>  
"# (remote\_function (: url =\> (: controller =\> ‘product’,: action =\>  
‘show’) )) "%\>   
  
\<% End%\>  
how can i get all the selected checkbox in the show-action(controller)?

Thanks im advance
