Permalink
Browse files

Fix error notification box styling

  • Loading branch information...
carlosantoniodasilva committed Jun 2, 2012
1 parent 60c9fbd commit 0c2a87d0fe040f6eca9e0e92a78087b196cffd5e
Showing with 3 additions and 3 deletions.
  1. +2 −2 app/views/articles/_form.html.erb
  2. +1 −1 config/initializers/simple_form.rb
@@ -13,10 +13,10 @@
simple_form_for(@article, :html => { :class => 'form-horizontal' }) do |f|
</pre>
- <% if f.error_notification %>
+ <% if notification = f.error_notification %>
<div class="alert alert-error fade in">
<a class="close" data-dismiss="alert" href="#">&times;</a>
- <%= f.error_notification %>
+ <%= notification %>
</div>
<% end %>
@@ -104,7 +104,7 @@
config.error_notification_tag = :div
# CSS class to add for error notification helper.
- config.error_notification_class = 'alert alert-error'
+ # config.error_notification_class = 'alert alert-error'
# ID to add for error notification helper.
# config.error_notification_id = nil

0 comments on commit 0c2a87d

Please sign in to comment.