Frederick Cheung wrote: > On Aug 4, 5:37�pm, 15characters 15characters <rails-mailing- > [email protected]> wrote: >> Frederick Cheung wrote: >> � def create >> � � @service_availability = >> ServiceAvailability.new(params[:service_availability]) > > You're doing this, but that checkbox submits params[:service][:Monday] > so it won't ever be used. > > fred
I wrote the HTML in wrong, I apologise, here is a copy and paste from the source: <label for="service_availability_Monday">Monday</label><input name="service_availability[Monday]" type="hidden" value="0" /> ... which is correct, but still isn't producing the expected results. -- 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 -~----------~----~----~----~------~----~------~--~---

