Skip to content

Instantly share code, notes, and snippets.

@JoeyBy
Created June 3, 2016 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeyBy/2cd9c2e67c52267153a9c827c983775d to your computer and use it in GitHub Desktop.
Save JoeyBy/2cd9c2e67c52267153a9c827c983775d to your computer and use it in GitHub Desktop.
class Task < ActiveRecord::Base
validates_presence_of :title, :message => "A title must be entered"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment