From: Dave Castellano Date: 2012-08-15T21:46:17+09:00 Subject: Variable in string in array Anybody know how to embed a #{} in a string and then place the string in an array? eg. array =["An #{age} year old..."] returns /Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:15 I tried adding single quotes array =[' "An #{age} year old..." '] and this accepted the string but the variable was also converted to a string, so lost as a variable. Thanks -- Posted via http://www.ruby-forum.com/.