From: Vikrant Chaudhary Date: 2011-01-07T16:02:56+09:00 Subject: String#% is not working on Ruby 1.8.7 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