[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)

perhaps I should add a method like:

p user.valid?(:name)

as a helper...



More information about the Nitro-general mailing list