Sha256: e36f7d291689f1bd8a17978408e66082acde69771b424722f2478adf857c066a
Contents?: true
Size: 503 Bytes
Versions: 22
Compression:
Stored size: 503 Bytes
Contents
= simple_form_for @<%= file_name %> do |form| -if @<%= file_name %>.errors.any? #errorExplanation %h2= "#{pluralize(@<%= file_name %>.errors.count, "error")} prohibited this #{<%= class_name %>.name.titleize} from being saved:" %ul - @<%= file_name %>.errors.full_messages.each do |msg| %li= msg <%- for attribute in attributes -%> = form.input :<%= attribute.name %>, :label => '<%= attribute.name.titleize %>' <%- end -%> .actions = form.button :submit
Version data entries
22 entries across 22 versions & 1 rubygems