Skip to content

Instantly share code, notes, and snippets.

@ess
Created September 29, 2010 22:29
Show Gist options
  • Save ess/603684 to your computer and use it in GitHub Desktop.
Save ess/603684 to your computer and use it in GitHub Desktop.
class Something < Model
Model.setup
field :first_name, :required
field :last_name, :required
field :organization
end
me = Something.new(:first_name => 'First', :last_name => 'Last')
me.valid?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment