Permalink
Browse files

guestbook

  • Loading branch information...
1 parent 3f65cc3 commit fe58f80b9242bde79a1cfa5cda8b39a010d20002 @jrabbott committed May 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/models/post.rb
View
@@ -1,3 +1,5 @@
class Post < ActiveRecord::Base
attr_accessible :body, :name, :created_at
+
+ validates :name, :body, :presence => true
end

0 comments on commit fe58f80

Please sign in to comment.