Rails 3.2
I am using Slim for my application. In one of my views, I have the following:
.form-horizontal-column
.form-group
= label_tag :paid_at
= text_field_tag :paid_at, :value => DateTime.now.strftime("%m/%d/%Y"), class: "date-picker-past"
But, instead of seeing a default value, like 02/07/2019, I am seeing this instead:
{:value=>"02/07/2019", :class=>"date-picker-past"}
Any ideas?
Rails 3.2. Use it this way instead:
= text_field_tag :paid_at, DateTime.now.strftime("%m/%d/%Y"), class: "date-picker-past"
basically remove :value =>