Basiclly i have the same issue like @user1224344 here:
How to submit multiple, duplicate forms from same page in Rails - preferably with one button
And the first answer looks quite nice, but i as rails beginner have problems to transpose it in my project. Ok i have two forms with the same controller that should be saved with only one submit button:
<table width="100%">
<tr>
<%= form_for([@patient, @patient.treatments.build]) do |f| %>
<th><%= f.collection_select :category_id, Category.find(:all), :id, :typ %></th>
<th><%= f.text_field :content %></th>
<th><%= f.hidden_field :note, :id => "canvascontent" %></th>
<th><%= f.text_field :day, :value => Date.today %></th>
<th><%= f.submit :class => 'btn btn-small btn-primary', :onclick => "sketch.toDataURL()" %></th>
<th><input type="button" onclick="sketch.clearRecording()" class="btn btn-small btn-danger" value="Löschen"></th>
<% end %>
</tr>
</table>
<table width="100%">
<tr>
<%= form_for([@patient, @patient.treatments.build]) do |f| %>
<th><%= f.collection_select :category_id, Category.find(:all), :id, :typ %></th>
<th><%= f.text_field :content , :id => "inputbox"%></th>
<th><%= f.text_field :day, :value => Date.today %></th>
<th><%= f.submit :class => 'btn btn-small btn-primary'%></th>
<% end %>
</tr>
</table>
Thanks for help! Espacially on sunday night(at least here in germany)