Topic: Rails 3 Shortcut Validation

Original code:
validates :money, :presence           => true
  validates_numericality_of :money, :greater_than_or_equal_to => 0,
                                    :only_integer => true

New Code:
  validates :money, :presence           => true,
                    :length             => { :minimum => 0},
                    :numericality       => { :only_integer => true }



Why doesn't it work?  :only_integer barks at me it's unexpected hash.

Re: Rails 3 Shortcut Validation

*crickets*