%%= form_for([:<%= options_params[:namespace] %>, <%= options_params[:model] %>]) do |f| %>
<%% if <%= options_params[:model] %>.errors.any? %>
<%%= pluralize(<%= options_params[:model] %>.errors.count, "error") %> prohibited this <%= options_params[:model] %> from being saved:
<%% <%= options_params[:model] %>.errors.full_messages.each do |message| %>
- <%%= message %>
<%% end %>
<%% end %>
<%- model_attributes.each do |a| %>
<%%= f.label :<%= a[:name] %>, class: "control-label" %>
<%%= f.text_field :<%= a[:name] %>, class: "form-control" %>
<% end %>
<%%= f.submit class: "btn btn-primary" %>
<%%= link_to 'Back', <%= options_params[:namespace] %>_<%= options_params[:model_plu] %>_path %>
<%% end %>