1

I will use date picker in rails application. My attribute type are date and datetime.

If I use bootstrap-datepicker-rails gem, should I change them to string?

If not, how to use the datepicker in simple-form?

The answer in StackOverview says that If your attribute using datetime type, you can use bootstrap-datetimepicker-rails gem, how to use it?

Thanks.

Community
  • 1
  • 1
Stephen
  • 3,822
  • 2
  • 25
  • 45

1 Answers1

2

Rails model attributes can be datetime and date. Just make the form input fields text, not date or datetime.

Babar Al-Amin
  • 3,939
  • 1
  • 16
  • 20