khagimoto wrote:
> Is it possible that you have another form field (hidden) with the same
> name defined later on in the form?

<h1>New Service Availability</h1>

<% form_for(@service_availability) do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.hidden_field :ServiceProviderID, :value => 1 %>
  </p>
  <p>
    <%= f.label :Service %><br />
    <%= f.collection_select :ServiceID, ServiceProviderService.all, :ID, 
:Name, :include_blank => 'None' %>
  </p>
  <p>
    <%= 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" %>
  </p>
  <p>
    <%= f.label :TimeStart %><br />
    <%= f.text_field :TimeStart %>
    <%= time_select(:TimeStart, "sunrise") %>
  </p>
  <p>
    <%= f.label :TimeFinish %><br />
    <%= f.text_field :TimeFinish %>
    <%= time_select(:TimeFinish, "sunrise") %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', service_availabilities_path %> <%= link_to 'Service 
Providers', service_providers_path %>
-- 
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