<%%= form_for [:admin, @<%=module_name_formatted.singularize%>], :builder => TbCore::FormBuilder, :html => {:class => 'form-horizontal'} do |f| %> <%%= tb_form_errors(f.object, :base) %> <%- attributes.collect{ |att| att.split(':') }.each do |arg_0, arg_1| %> <%= field_for_attribute(arg_1, arg_0) %> <%- end %> <%%= f.tb_save_buttons('<%= module_name_formatted.singularize.humanize.titlecase %>', @<%= module_name_formatted.singularize %>.new_record? ? admin_<%= module_name_formatted %>_path : admin_<%= module_name_formatted.singularize %>_path(@<%= module_name_formatted.singularize %>)) %> <%% end %>