good call Rupert.
Michael

On Sat, Feb 28, 2009 at 3:38 AM, Rupert Voelcker <[email protected]>wrote:

>
> 2009/2/27 Worrab <[email protected]>:
> >
> > Thank you so much.  That's a lovely, neat solution - and it gives
> > plenty of pointers for moving forward.
> >
> > Such a lot to learn - so little time.
>
> another alternative if some of the values are going to be nil and you
> want commas (or some other separator) is:
>
> def full_address(separator = ', ')
>  @full_address ||= [ name, addr1, posttown, postcode, postcode
> ].compact.join(separator)
> end
>
> Rupert
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to