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%>
<tr>
<td><%= t.ihd %></td>
</tr>
<%end%>
I want something like:
<% for t in @patient.histories%>
<tr>
<td><%=check_box_tag"diabetes", t.ihd %></td>
</tr>
<%end%>
(hope that makes sense!)
I have tried many permutations of the above and I can''t make it work!
All ideas gratefully recieved!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---