On Sun, Sep 6, 2009 at 5:47 PM, Eric<[email protected]> wrote:
>
> @project.services.collect{|s| s.name}.to_sentence
Sweet, didn't know that one. Let's add the period, though:
@project.services.collect{|s| s.name}.to_sentence.concat(".")
Et voila, another good day's work :-)
--
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---