aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/testing.textile
diff options
context:
space:
mode:
authoreparreno <emili@eparreno.com>2010-11-15 19:21:40 +0100
committerXavier Noria <fxn@hashref.com>2010-11-21 03:29:43 +0100
commit3d377454dbeb9ab9fc0a4d491498c237e33e8d4b (patch)
treeeb472ff9c113bc07386cf0973e166b9abf14badb /railties/guides/source/testing.textile
parentd5779efaf2375466ab557868e586b9dbd942abc1 (diff)
downloadrails-3d377454dbeb9ab9fc0a4d491498c237e33e8d4b.tar.gz
rails-3d377454dbeb9ab9fc0a4d491498c237e33e8d4b.tar.bz2
rails-3d377454dbeb9ab9fc0a4d491498c237e33e8d4b.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.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/testing.textile b/railties/guides/source/testing.textile
index 3d4f31cc5d..c292a5d83b 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>