bcardarella/client_side_validations — Issue #203: Verifying attribute value on another attribute value
Author: laleshii
Created: 2011-10-18 10:30:17+00:00
State: open

Hello,

Can anyone help me with this thing.
I am trying to validate a field so it is bigger than another one.
Using Rails 3.1 and client_side_validations 3.1.0

I tried in my model:
validates_numericality_of :field1, :greater_than_or_equal_to => Proc.new { |r| r[:field2] }, :message => "Error message."

I know I am doing it wrong just can't figure out a solution.

Thank you in advance,
Rares