Skip to content

Instantly share code, notes, and snippets.

@domagude domagude/post.rb
Last active Nov 8, 2017

Embed
What would you like to do?
...
validates :title, presence: true, length: { minimum: 5, maximum: 255 }
validates :content, presence: true, length: { minimum: 20, maximum: 1000 }
validates :category_id, presence: true
...
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.