If you look at my code included above, I'm not outputting that second 
input field

<label for="service_Monday">Monday</label><input name="service
[Monday]"
type="hidden" value="0" /><input id="service_Monday"
name="service[Monday]" type="checkbox" value="1" />

It just generates the second hidden field, I don't know why, this is my 
code

<%= f.label :Monday %><%= f.check_box :Monday, {}, "1", "0"  %><%=
f.label :Tuesday %><%= f.check_box :Tuesday, {}, "1", "0" %><%= f.label
:Wednesday %><%= f.check_box :Wednesday, {}, "1", "0" %><%= f.label
:Thursday %><%= f.check_box :Thursday, {}, "1", "0" %><%= f.label
:Friday %><%= f.check_box :Friday, {}, "1", "0" %><%= f.label :Saturday
%><%= f.check_box :Saturday, {}, "1", "0" %><%= f.label :Sunday %><%=
f.check_box :Sunday, {}, "1", "0" %>
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to