Permalink
Browse files

Added notification support for the twitter template

  • Loading branch information...
ashrafuzzaman committed Jun 24, 2012
1 parent e9bd571 commit f0d448681dca1a2ca7f32ddb33b0b59dcd1ba053
Showing with 1 addition and 12 deletions.
  1. +1 −12 lib/generators/template/install/templates/erb/scaffold/twitter/_form.html.erb
@@ -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 f0d4486

Please sign in to comment.