<%= form_for([:admin, resource]) do |f| %> <% resource_class.attribute_names.each do |attr| %>
<%= f.label attr %>
<%= f.text_field attr %>
<% end %> <%= f.submit %> <% end %>