Commit 1b5d0ae3 authored by John Noel's avatar John Noel

Added Post Validations

parent aaa3f2bd
class Post < ApplicationRecord
validates :title, presence: true
validates :content, presence: true
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment