Changeset 1345 for plugins

Show
Ignore:
Timestamp:
02/08/08 06:28:48 (10 months ago)
Author:
jimfree..@gmail.com
Message:

Fixed helper errorify

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/merb_helpers/lib/merb_helpers/form_helpers.rb

    r1292 r1345  
    576576       
    577577      def errorify_field(attrs, col) 
    578         attrs.add_html_class!("error") if @_obj.respond_to?(:errors) && @_obj.errors.on(col) 
     578        attrs.add_html_class!("error") if @_obj.respond_to?(:errors) && !@_obj.errors.on(col).empty? 
    579579      end    
    580580