Don't know how to get the page to scroll back to the last update

Evidence is now saved
More cleaning up to do.
This commit is contained in:
2024-10-14 11:55:43 +01:00
parent b725d2dd74
commit 7f2275c40e
3 changed files with 16 additions and 5 deletions

View File

@@ -3,7 +3,8 @@
<p><%= @subprincipleitem.description %><p>
<%= form_with(model: @subprincipleitem) do |form| %>
<%#= form_for( [company, caf] ) do |form| %>
<%= form_for( [ @caf, @subprincipleitem] ) do |form| %>
<div>
<%= form.label :affirmative %> <%= form.check_box :affirmative, {}, true, false %>
</div>
@@ -12,6 +13,6 @@
<%= form.rich_text_area :evidence %>
</div>
<div>
<%= form.submit %>
<%= form.submit 'Update' %>
</div>
<% end %>