On Wed, Nov 22, 2006 at 12:13:49AM +0100, Matthew Planchant wrote:
> Jens Kraemer wrote:
> > On Tue, Nov 21, 2006 at 05:44:31PM +0100, Matthew Planchant wrote:
> >> > seems your primary_organisation and preferred_address are nil, indeed.
> >> 
> >> So what does this mean? Is this likely to bring the rebuild process to 
> >> an end prematurely?
> > 
> > should not, but you should handle the case your relationship is nil, 
> > i.e.:
> > 
> > def primary_organisation_name
> >   primary_organisation.name rescue nil
> > end
> 
> Ok. Thanks. What does this do?

it returns nil in case the expression before the 'rescue' raises an
exception.

Jens
 

-- 
webit! Gesellschaft für neue Medien mbH          www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer       [EMAIL PROTECTED]
Schnorrstraße 76                         Tel +49 351 46766  0
D-01069 Dresden                          Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to