Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #74 from sodabrew/fix_errors_ruby_18
Browse files Browse the repository at this point in the history
Change some Ruby 1.9 syntax to Ruby 1.8
  • Loading branch information
sodabrew committed Jun 13, 2013
2 parents 6a5dba3 + 1a853dd commit 72d283d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/formtastic-bootstrap/helpers/errors_helper.rb
Expand Up @@ -57,14 +57,14 @@ def semantic_errors(*args)
else
html_options[:class] = "alert alert-error " + html_options[:class]
end

template.content_tag(:div, html_options) do
template.content_tag(:button, "×".html_safe, :class => "close", "data-dismiss" => "alert") +
template.content_tag(:ul, {class: "error-list"}) do
template.content_tag(:ul, {:class => "error-list"}) do
Formtastic::Util.html_safe(full_errors.map { |error| template.content_tag(:li, Formtastic::Util.html_safe(error)) }.join)
end
end
end
end
end
end
end

0 comments on commit 72d283d

Please sign in to comment.