Module: Nodes::ApplicationHelper
- Defined in:
- app/helpers/nodes/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#form_error(o) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/nodes/application_helper.rb', line 3 def form_error(o) if o.errors.any? haml_tag :div, :id => 'error_explanation' do haml_tag :h2 do haml_concat t(:error_save) end haml_tag :ul do o.errors..each do |msg| haml_tag :li do haml_concat msg end end end end end end |