Last active
December 23, 2015 00:09
-
-
Save DevanB/6551291 to your computer and use it in GitHub Desktop.
expected Hash (got String) for param `date' error with pickadate in rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= 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 %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t.string "time" | |
t.date "date" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment