The check boxes created by check_box are not checked when they should be
:
This code should produce lines of checked checkboxes and the word
"true"
next to each of the checkboxes.
But it produces lines of unchecked checkboxes with "true" next to each
checkbox.
<% for report_test_and_name in report_suite.report_test_and_names %>
<%=report_test_and_name.test? %>
<%=check_box "report_test_and_name","test?" %>
<p>
<% end %>
I don''t get it, it doesn''t make sense. Surely if
report_test_and_name.test? returns true then
checkbox("report_test_and_name","test?") should return a
checked
checkbox?
Any help would be appreciated as I''m tearing my hair out with this one.
Thanks
Chris
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---