How do I connect jQuery Datepicker to my Ruby on Rails form?

前端 未结 7 2272
谎友^
谎友^ 2020-12-13 18:22

I\'m trying to use the jQuery Datepicker to set a date field in my Ruby on Rails form, but I can\'t work out how to do it. Can someone point me in the right direction?

7条回答
  •  死守一世寂寞
    2020-12-13 19:05

    As of now, I'd recommend jquery-ui-rails gem above the other answers for the simple reason you can include only the datepicker assets without the entire jquery ui library!

    https://github.com/joliss/jquery-ui-rails

提交回复
热议问题