Module: JanusHelper
- Defined in:
- lib/janus/helper.rb
Instance Method Summary collapse
Instance Method Details
#janus_error_messages ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/janus/helper.rb', line 2 def return "" if resource.errors.empty? content_tag :div, :id => 'error_explanation' do content_tag :ul do resource.errors..map { || content_tag :li, }.join.html_safe end end end |