Skip to content

Instantly share code, notes, and snippets.

@DevanB
Last active December 23, 2015 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DevanB/6551291 to your computer and use it in GitHub Desktop.
Save DevanB/6551291 to your computer and use it in GitHub Desktop.
expected Hash (got String) for param `date' error with pickadate in rails
<%= form_for(@event, :html => { class: 'form-horizontal'}) do |f| %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :time %>
<%= f.text_field :time, class: "timepicker" %>
<%= f.label :date %>
<%= f.text_field :date, class: "datepicker" %>
<%= f.submit 'Continue', class: "btn btn-primary" %>
<% end %>
t.string "time"
t.date "date"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment