Hi, Is there a way to set the validate_numericality_of limit to a variable passed in from the controller? I have this model: class Vision < ActiveRecord::Base belongs_to :employee belongs_to :users validates_numericality_of :paid_amount, :on => :update, :less_than_or_equal_to => 250, :allow_nil => true validates_numericality_of :cost, :allow_nil => false end I''d like to use something like: :less_than_or_equal_to=> :variable Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---