Sha256: 5bd4568e60f441e4523476087bc36492fcbceb64db30de96f95dc4f5c0f9ce94

Contents?: true

Size: 648 Bytes

Versions: 22

Compression:

Stored size: 648 Bytes

Contents

<%%= simple_form_for @<%= file_name %> do |form| %>
  
  <%% if @<%= file_name %>.errors.any? -%>
  <div id="errorExplanation">
    <h2><%%= "#{pluralize(@<%= file_name %>.errors.count, "error")} prohibited this #{<%= class_name %>.name.titleize} from being saved:" %></h2>
    <ul>
      <%%- @<%= file_name %>.errors.full_messages.each do |msg| -%>
      <li><%%= msg %></li>
      <%%- end -%>
    </ul>
  </div>
  <%% end -%>

  <%- for attribute in attributes -%>
  <%%= form.input :<%= attribute.name %>, :label => '<%= attribute.name.titleize %>' %>
  <%- end -%>

  <div class="actions">
    <%%= form.button :submit %>
  </div>
<%% end %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rails3-generators-0.17.6 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.17.5 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.17.4 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.17.3 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.17.2 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.17.1 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.17.0 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.16.1 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.16.0 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.15.0 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.14.0 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.13.0 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.12.1 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.12.0 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.11.0 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.10.3 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.10.2 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.10.1 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.10.0 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb
rails3-generators-0.9.2 lib/generators/simple_form/scaffold/templates/_form.html.erb.erb