We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a84c7b commit 8f9900dCopy full SHA for 8f9900d
app/models/post.rb
@@ -1,3 +1,4 @@
1
class Post < ActiveRecord::Base
2
attr_accessible :body, :description, :published_at, :title
3
+ validates :title, :presence => true
4
end
0 commit comments