Show More
Commit Description:
update cheat scrutinize
Commit Description:
update cheat scrutinize
References:
File last commit:
Show/Diff file:
Action:
lib/templates/haml/scaffold/_form.html.haml
| 12 lines
| 408 B
| text/x-haml
| HamlLexer
|
| r751 | -# 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? | ||||
| .form-inputs | ||||
| <%- attributes.each do |attribute| -%> | ||||
| = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> | ||||
| <%- end -%> | ||||
| .form-actions | ||||
| = f.button :submit | ||||
