FormBuilder.datetime_select fields not supported #37

Closed
ejstembler opened this Issue Sep 19, 2012 · 2 comments

Projects

None yet

4 participants

@ejstembler

Here's an example:

app/views/projects/_form.html.erb:

<%= form_for(@project) do |f| %>
    <%= f.label :start_date %> <%= f.datetime_select :start_date, :twelve_hour => true %>
<% end %>

params[:project]:

'start_date(1i)' = '2012'
'start_date(2i)' = '9'
'start_date(3i)' = '19'
'start_date(4i)' = '13'
'start_date(5i)' = '43'

Validation message:

1 error prohibited this project from being saved:

  • Start date can't be blank
@lucasallan

Hey @ejstembler, could you show your strong_parameters configuration code of your controller?

@rafaelfranca
Member

It will be fixed by #39

@dhh dhh closed this Oct 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment