Permalink
Browse files

[getting started] add attr_accessible to Post model

  • Loading branch information...
1 parent aa7f2a3 commit 9a8c91d8e8d958eed5c0854517428104f585149b @radar radar committed May 16, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 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

0 comments on commit 9a8c91d

Please sign in to comment.