Rails has introduced new way to validate attributes inside model. When I use
validates :title, :presence => true
it works but when I try to add a custom message
validates :title, :presence => true,:message => "Story title is required"
an error is generated
Unknown validator: 'message'
Try this
validates :title, presence: { message: "Story title is required" }