Allow form to submit from datatable
Allow form to submit from datatable
My row has a button, which on click will submit the form. But the click doesn't work.
<%= form_for(@sing) do |f| %>
<%= @sing.number %>
<%= @sing.country %>
<%= @sing.status %>
<%= f.select("environment", options_for_select([['qa1', 'qa1'],
['qa2', 'qa2'],['stg', 'stg'],['vlab', 'vlab']],:environment )) %>
<%= f.radio_button :reserved ,'reserved' %>
<%= f.text_field :notes%>
<%= link_to "abc","/tnrepos/1" %>
<% end %>
How can a form be submitted
<%= form_for(@sing) do |f| %>
<%= @sing.number %>
<%= @sing.country %>
<%= @sing.status %>
<%= f.select("environment", options_for_select([['qa1', 'qa1'],
['qa2', 'qa2'],['stg', 'stg'],['vlab', 'vlab']],:environment )) %>
<%= f.radio_button :reserved ,'reserved' %>
<%= f.text_field :notes%>
<%= link_to "abc","/tnrepos/1" %>
<% end %>
How can a form be submitted
This discussion has been closed.