diff options
author | eparreno <emili@eparreno.com> | 2010-11-15 19:21:40 +0100 |
---|---|---|
committer | eparreno <emili@eparreno.com> | 2010-11-15 19:21:40 +0100 |
commit | 04775a41cbbddceeffa9cf8590566b9990fd4070 (patch) | |
tree | fadc43711f43f858605c7c2c09d20c2d0960d293 /railties/guides/source/testing.textile | |
parent | e7723baa0b904787bde363f55912f7e71aa4517d (diff) | |
download | rails-04775a41cbbddceeffa9cf8590566b9990fd4070.tar.gz rails-04775a41cbbddceeffa9cf8590566b9990fd4070.tar.bz2 rails-04775a41cbbddceeffa9cf8590566b9990fd4070.zip |
remove old school validations and replaced with new validates method. Pending: fix active_record guide
Diffstat (limited to 'railties/guides/source/testing.textile')
-rw-r--r-- | railties/guides/source/testing.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/testing.textile b/railties/guides/source/testing.textile index 043a2462b4..aae849c369 100644 --- a/railties/guides/source/testing.textile +++ b/railties/guides/source/testing.textile @@ -315,7 +315,7 @@ Now to get this test to pass we can add a model level validation for the _title_ <ruby> class Post < ActiveRecord::Base - validates_presence_of :title + validates :title, :presence => true end </ruby> |