Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix error notification box styling

  • Loading branch information...
commit 0c2a87d0fe040f6eca9e0e92a78087b196cffd5e 1 parent 60c9fbd
@carlosantoniodasilva carlosantoniodasilva authored
View
4 app/views/articles/_form.html.erb
@@ -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 %>
View
2  config/initializers/simple_form.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.