I have an empty form into a link. That is instead of having a button
initiate a get request, do it with a link.
The form looks like this:
<%= form_tag somethpath(@data), method: get, :remote => true,
:'data-attr' => @
data.id do %>
<%= submit_tag "Search" %>
<% end %>
Is there an equivalent way to do this using link_to ?
--
Posted via
http://www.ruby-forum.com/.