[Nitro] is there a 'is_valid_property?' in og?

George Moschovitis george.moschovitis at gmail.com
Thu Apr 14 14:18:09 EDT 2005


> Is there a way to check the error-list for a specific property? If yes my
> problem were solved.

of course:

unless user.valid?
  p user.errors[:name]
  # or
  p user.errors.on(:name)
end

perhaps I should add a method like:

p user.valid?(:name)

as a helper...


-g.


-- 
http://nitro.rubyforge.org
http://www.joy.gr




More information about the Nitro-general mailing list