Sha256: 2b01a8497f90698debc6801b29e5d56afc7a6cce23f20eba6221ea90f93f4d90
Contents?: true
Size: 780 Bytes
Versions: 2
Compression:
Stored size: 780 Bytes
Contents
<%- strformfor = "@#{singular_table_name}" if not namespace_alone.blank? then strformfor = "[:#{namespace_alone}, @#{singular_table_name} ]" end -%> <%%= form_for(<%= strformfor %>) do |f| %> <%% if @<%= singular_table_name %>.errors.any? %> <div id="error_explanation"> <h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2> <ul> <%% @<%= singular_table_name %>.errors.full_messages.each do |msg| %><li><%%= msg %></li><%% end %> </ul> </div> <%% end %> <%= render_partial 'app/views/partials/_form_field.html.erb' %><!-- Beautiful_scaffold - AddField - Do not remove --> <div> <%%= f.submit :class => "btn btn-primary" %> </div> <%% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
beautiful_scaffold-0.3.5 | lib/generators/templates/app/views/_form.html.erb |
beautiful_scaffold-0.3.4 | lib/generators/templates/app/views/_form.html.erb |