Hello,
I have a couple of time field (MySQL data type: time) "start_time" and
"end_time", and I'm trying to use a time_select helper to save the
data. Here's how I'm using it:
<%= form.time_select :activity_start_time, :prompt =>
true, :ignore_date => true %>
<%= form.time_select :activity_end_time, :prompt => true, :ignore_date
=> true %>
and I get this error:
2 error(s) on assignment of multiparameter attributes
when it hits the controller at this line:
@activity = Activity.new(params[:activity])
Here's the parameters:
{"authenticity_token"=>"5MmHPVW9VupApm3Qk17OEaf4M5dTk7iw9HhFbhOM3Q0=",
"activity"=>{"name"=>"",
"notes"=>"",
"activity_start_time(4i)"=>"10",
"activity_end_time(4i)"=>"13",
"activity_start_time(5i)"=>"00",
"activity_end_time(5i)"=>"00",
"activity_date"=>"04/03/2010",
"hours"=>"",
"description"=>"",
"activity_type"=>"40"}}
What am I doing wrong?
--
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.