For Forms which updates models my datepicker is working and included as follows:
= f.input :starts_at, :as => :datepicker
now I want to use the Datepicker in a Search Form which passes several search params to the controller (not using a model). I’m no sure how the input is defined with text_field_tag or else.
= form_tag some_action_path, method: "get", class: "someclass" do |f|
= text_field_tag ???...
found the solution, i simply have to pass the paramname as id to the datepicker js