From: Josh Cheek Date: 2011-01-07T16:23:12+09:00 Subject: Re: String#% is not working on Ruby 1.8.7 --001485f92a8886424504993c7d87 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jan 7, 2011 at 1:02 AM, Vikrant Chaudhary wrote: > To reproduce, I just copied the example right from ruby-doc > http://www.ruby-doc.org/core/classes/String.html#M001127 into irb > session. > > >> "foo = %{foo}" % { :foo => 'bar' } > ArgumentError: malformed format string - %{ > from (irb):1:in `%' > from (irb):1 > > I'm using > ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux] > on Ubuntu amd64 > > > They changed the default Ruby on ruby-doc to 1.9.2, docs for 1.8.7 are at http://www.ruby-doc.org/core-1.8.7/classes/String.html#M000742 --001485f92a8886424504993c7d87--