Hi all Is there a function that makes the first character of a given string upcase? first_to_upper "canada" Thanks for help. :-) Joshua -- Posted via http://www.ruby-forum.com/.
Check out http://www.ruby-doc.org/core/classes/String.html#M001867 On 6/29/06, Joshua Muheim <forum@josh.ch> wrote:> > Hi all > > Is there a function that makes the first character of a given string > upcase? > > first_to_upper "canada" > > Thanks for help. :-) > Joshua > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060629/ec1e2c47/attachment.html
> -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of > Joshua Muheim > Sent: Thursday, June 29, 2006 2:05 PM > To: rails@lists.rubyonrails.org > Subject: [Rails] String: first character upcase? > > > Hi all > > Is there a function that makes the first character of a given string > upcase?String#capitalize and String#capitalize! Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.