diff options
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/getting_started.textile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index d718ba409a..c33e92c547 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -672,6 +672,8 @@ Open the +app/models/post.rb+ file and edit it: <ruby> class Post < ActiveRecord::Base + attr_accessible :text, :title + validates :title, :presence => true, :length => { :minimum => 5 } end |