Skip to content

Instantly share code, notes, and snippets.

@towhans
Created January 25, 2013 12:22
Show Gist options
  • Save towhans/4634038 to your computer and use it in GitHub Desktop.
Save towhans/4634038 to your computer and use it in GitHub Desktop.
{
name => 'post',
ignore_missing => 1,
params => {
subject => {
required => 1,
length_between => [3, 40],
},
day => {
required => 0,
integer => 1,
value_between => [1, 31],
},
mon => {
required => 0,
integer => 1,
value_between => [1, 12],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment