Changeset 277 for trunk

Show
Ignore:
Timestamp:
01/22/07 04:55:57 (5 years ago)
Author:
john
Message:

fixed error_messages_for()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/action_view/helpers/active_record_helper.php

    r271 r277  
    179179                    sprintf($header_message, Inflector::pluralize("error", count($object->errors)), Inflector::humanize($object_name)) 
    180180                ) . 
    181                 $this->content_tag("p", "There were problems with the following fields:") . 
     181                $this->content_tag("p", $header_sub_message) . 
    182182                $this->content_tag("ul", array_reduce($object->errors, create_function('$v,$w', 'return ($v ? $v : "") . content_tag("li", $w);'), '')), 
    183183                array("id" => $id, "class" => $class)