I am using the bootstrap date picker to enable selection of dates in a form using simple_form_for. For example
<%= f.input :payment_date, as: :string, i
You can also use this gem: https://github.com/Nerian/bootstrap-datepicker-rails
on your gemfile.rb
gem 'bootstrap-datepicker-rails'
then bundle install and restart rails server
then add this line to app/assets/stylesheets/application.css
*= require bootstrap-datepicker
and add this line to app/assets/javascripts/application.js
//= require bootstrap-datepicker
and to use this in your form:
<%= f.text_field :payment_date, :id => "datepicker", :value => Date.today %>
and add this javascript on the same view of your form