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

Daniel Bovensiepen daniel at bovensiepen.net
Thu Apr 14 14:23:51 EDT 2005


Oh thats great for the moment..
Thanks a lot..


Am 14.04.2005 20:18 Uhr schrieb "George Moschovitis" unter
<george.moschovitis at gmail.com>:

>> 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.
> 





More information about the Nitro-general mailing list