Hi,
I''m using fields_for and a time_select but he isn''t saving the
time in
the db just 00:00:00
All the other fields are fine, but the time_field isn''t working:s
This is my code:
<% form_for :activity, @activity,:url => {:action =>
"create"} do
|activity_form| %>
<td><%= activity_form.time_select :datum_1_twrak_van, :order =>[
:hour,
:minute ]%></td>
<td><%= activity_form.time_select :datum_1_twrak_tot, :order =>[
:hour,
:minute ],:include_blank => true %></td>
<% fields_for :vervolg, @vervolg do |vervolg_form| %>
<td><%= vervolg_form.time_select
:interventies_pc_pol_aanvangsuur_dag_1,
:order =>[ :hour, :minute ],:include_blank => true %></td>
<% end %>
<% end %>
--------
my migrate file 1
t.column :datum_1_twrak_van, :time
t.column :datum_1_twrak_tot, :time
my migrate file 2
t.column :interventies_pc_pol_aanvangsuur_dag_1, :time
Can someone find my problem?
--
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?hl=en
-~----------~----~----~----~------~----~------~--~---