Permalink
Browse files

Included message feature in the template generation

  • Loading branch information...
ashrafuzzaman committed Jun 24, 2012
1 parent e9bd571 commit 60e354f51ffac9e9ad503724c337e5edaf997842

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -1,16 +1,5 @@
<%%= form_for(@<%= singular_table_name %>, html: {class: 'form-horizontal well'}) 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 => 'shared/notifications', :locals => {:model => @<%= singular_table_name %>} %>
<fieldset>
<legend><%%= <%= singular_table_name %>_form_title(@<%= singular_table_name %>) %></legend>
<% attributes.each do |attribute| -%>

0 comments on commit 60e354f

Please sign in to comment.