We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84cd31c commit 2677ee3Copy full SHA for 2677ee3
lib/templates/erb/scaffold/do_not_use_form.html.erb
@@ -0,0 +1,15 @@
1
+<%# frozen_string_literal: true %>
2
+<%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
3
+ <%%= f.error_notification %>
4
+ <%%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>
5
+
6
+ <div class="form-inputs">
7
+ <%- attributes.each do |attribute| -%>
8
+ <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
9
+ <%- end -%>
10
+ </div>
11
12
+ <div class="form-actions">
13
+ <%%= f.button :submit %>
14
15
+<%% end %>
0 commit comments