Home > database >  Rails Form input_html not working for calling javascipt controller
Rails Form input_html not working for calling javascipt controller

Time:06-11

So I have this input field, using form Rails 7.0.2.3, and I'm looking forward to call a controller but this is not connecting.

<%= form_with url: "/projects/#{@project.id}", method: :get do |form| %>
   <%= form.text_field :query, html5: true, input_html: { data: { controller: "flatpickr" } } %>
   <%= form.submit '           
  • Related