--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: error_messages
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Provides a HTML formatted display of resource errors in an unordered list with a h2 form submission error
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "obj<Object>:"
    body: Model or Resource
  - !ruby/struct:SM::Flow::LI 
    label: "error_class<String>:"
    body: CSS class to use for error container
  - !ruby/struct:SM::Flow::LI 
    label: "build_li<String>:"
    body: Custom li tag to wrap each error in
  - !ruby/struct:SM::Flow::LI 
    label: "header<String>:"
    body: Custom header text for the error container
  - !ruby/struct:SM::Flow::LI 
    label: "before<Boolean>:"
    body: Display the errors before or inside of the form
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Returns
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "String:"
    body: HTML
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  &lt;%= error_messages_for @person %&gt;\n  &lt;%= error_messages_for @person {|errors| &quot;You can has probs nao: #{errors.size} of em!&quot;}\n  &lt;%= error_messages_for @person, lambda{|error| &quot;&lt;li class='aieeee'&gt;#{error.join(' ')}&quot;} %&gt;\n  &lt;%= error_messages_for @person, nil, 'bad_mojo' %&gt;\n"
full_name: Merb::Helpers::Form#error_messages_for
is_singleton: false
name: error_messages_for
params: (obj = nil, opts = {})
visibility: public
