Skip to content

Commit 8f9900d

Browse files
committed
Update app/models/post.rb
1 parent 1a84c7b commit 8f9900d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/models/post.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
class Post < ActiveRecord::Base
22
attr_accessible :body, :description, :published_at, :title
3+
validates :title, :presence => true
34
end

0 commit comments

Comments
 (0)