Skip to content

Commit 2677ee3

Browse files
author
github-actions
committed
update with project-syncing action
1 parent 84cd31c commit 2677ee3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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+
</div>
15+
<%% end %>

0 commit comments

Comments
 (0)