Skip to content
This repository was archived by the owner on Aug 17, 2017. It is now read-only.

FormBuilder.datetime_select fields not supported #37

Closed
@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions