On Jun 8, 3:10 am, Michael Pavling <pavl...@gmail.com> wrote:
>   def full_name
>     [first_name, last_name].join(" ")
>   end
>
> ...now, if you're missing a first or last name, you don't get extra
> white-space padding (and if you want to include 'title' or
> 'middle_name' you're not creating n+1 strings).

Never thought of that. Nice tip. Thanks.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to