Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. validates_numericality_of
  2. :allow_nil επιτρεπει να μην βαλουμε καποια τιμη σε αυτο το πεδιο
  3. :only_integer:  μονο ακεραιοι
  4. :greater_than, :greater_than_or_equal_to, :equal_to, :less_than, and :less_than_or_ equal_to: These parameters allow you to specify not only that the attribute is a number but that it fits within a specified range: