1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
lpr-partynest/lib/templates/erb/scaffold/_form.html.erb
2019-09-03 10:37:22 +05:00

12 lines
418 B
Text

<%# frozen_string_literal: true %>
<%%= simple_form_for @<%= singular_table_name %> do |f| %>
<%%= f.error_notification %>
<%%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>
<%- attributes.each do |attribute| -%>
<%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
<%- end -%>
<%%= f.button :submit %>
<%% end %>