Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4142

Show
Ignore:
Timestamp:
04/03/06 18:47:49 (2 years ago)
Author:
david
Message:

Doc fix #3960 [jonrailsdev@shumi.org]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/lib/active_record/validations.rb

    r4078 r4142  
    278278      # 
    279279      #   class Person < ActiveRecord::Base 
    280       #     validates_each :first_name, :last_name do |record, attr
    281       #       record.errors.add attr, 'starts with z.' if attr[0] == ?z 
     280      #     validates_each :first_name, :last_name do |record, attr, value
     281      #       record.errors.add attr, 'starts with z.' if value[0] == ?z 
    282282      #     end 
    283283      #   end