Displaying 1 result from an estimated 1 matches for "expecitng".
Did you mean:
expecing
2006 Mar 31
10
ruby help / if (cond or cond)
Why this code doesn''t work as expected? It raises exceptions everytime.
Tried with || operator, too.
validates_each :x, :y do |record, attr|
record.errors.add (attr, ''between 1 and 100'') if (attr.to_i>100 or
attr.to_i<0)
end
--
They say money can''t buy happiness? Look at the smile on my face... ear to ear, baby!