Skip to content

Instantly share code, notes, and snippets.

@bodrovis bodrovis/post.rb
Created Nov 9, 2019

What would you like to do?
# ...
validates :title, presence: true
validates :body, presence: true, length: {minimum: 2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.