# Check\_box

**URL:** <https://www.ruby-forum.com/t/check-box/93276>\
**Category:** Rails\
**Created:** [April 30, 2007, 11:06am UTC](https://www.ruby-forum.com/t/check-box/93276 "2007-04-30T11:06:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armitage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/779978/32.png) [@Armitage](https://www.ruby-forum.com/u/Armitage)\
**Post date:** [April 30, 2007, 11:06am UTC](https://www.ruby-forum.com/t/check-box/93276/1 "2007-04-30T11:06:19Z")

</div>

I am sure this is a trivial problem for a rails guru!

all I want to do is display an appropriately cheched check\_box in a  
table, so:

instead of  
\<% for t in @patient.histories%\>

 \<%= t.ihd %\> \<%end%\>

I want something like:

\<% for t in @patient.histories%\>

 \<%=check\_box\_tag"diabetes", t.ihd %\> \<%end%\>

(hope that makes sense!)  
I have tried many permutations of the above and I can’t make it work!  
All ideas gratefully recieved!
