app/views/phcscriptcdnpro/script/versions/_form.html.erb in phcscriptcdnpro-64.1.0 vs app/views/phcscriptcdnpro/script/versions/_form.html.erb in phcscriptcdnpro-65.0.0
- old
+ new
@@ -1,19 +1,19 @@
-<%= form_for(script_version) do |f| %>
+<%= form_with(model: script_version, local: true) do |form| %>
<!-- PHCNotifi Render Validation -->
<%= render 'phcnotifi/validations', :object => @script_version %>
<!-- Form Input Fields -->
<div class="form-group field_with_error">
- <%= f.label :scriptversion, "Version Number" %>
- <%= f.text_field :scriptversion, placeholder: "Version Number", class: "form-control" %>
+ <%= form.label :scriptversion, "Version Number" %>
+ <%= form.text_field :scriptversion, placeholder: "Version Number", class: "form-control" %>
</div>
<!-- Form Input Fields -->
<!-- Form Submition Button -->
<div class="actions">
- <%= f.submit class: "btn btn-primary" %>
+ <%= form.submit class: "btn btn-primary" %>
</div>
<!-- For Submition Button -->
<% end %>