<%= form_for([Administrate::NAMESPACE, @page.resource], class: "form") do |f| %> <% if @page.resource.errors.any? %>

<%= pluralize(@page.resource.errors.count, "error") %> prohibited this <%= @page.resource_name %> from being saved:

<% end %>
<% @page.attributes.each do |attribute| -%>
<%= render_field attribute, f: f %>
<% end -%>
<%= f.submit %>
<% end %>