Thanks for the info but the problem here is that my model does not have
any validations declared because they depend on the workflow that the
For instance, the user can set that in the Step 1 of the Workflow he
wants to validate that a given attribute is greater than 300.
To do this I need to call directly the validates_numericality_of class
Step.validates_numericality_of(:attribute, :greater_than => 300)
Mahmoud Said wrote:
I believe you are not thinking in the proper use of validations.
What you want to do is:
s = Step.new
s.errors.on(attribute_to_be_validated) #returns nil for a valid
the error message in case the validation was not met
On Fri, Mar 26, 2010 at 2:36 AM, Hugo M. [email protected] wrote:
def Wrk < ActiveRecord::Base
Posted via http://www.ruby-forum.com/.
Software Engineer - eSpace