From: dblack@... Date: 2007-01-14T21:25:54+09:00 Subject: Re: "soemthing".pluralize/at/from/... -> NoMethodError Hi -- On Sun, 14 Jan 2007, David Krmpotic wrote: > Hello, > > > I've been wondering about this for some time now.. Why don't any of the > following methods work: string.at/from/first/last/humanize/pluralize ? > IRB returns: > > NoMethodError: undefined method `pluralize' for "something":String > > You can try it yourself (also by using web IRB from here: > http://tryruby.hobix.com/) > > Those methods are mentioned in "Agile Development with Rails" for > example.. you can also see people using them on Google code search. > > However, they are not mentioned in documentation: > http://ruby-doc.org/core/classes/String.html > > This is funny. Also.. string.to_json and string.to_yaml are mentioned in > the agile book, but don't work either. Those methods are add-ons that come with Rails. They're not part of standard Ruby. David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)