From: Scott Elwood Date: 2011-05-17T20:22:41+09:00 Subject: Ruby/Sinatra - Variable inside erb calls Hi there, I have a question regarding variables inside of erb arguments. This is what I would like to achieve: require 'sinatra' get '/' do style = 'default' erb :'templates/'+style+'/layout' end Running that will give you errors, saying there can't be a plus sign for the concatenation. Is there a way to work around this? -- Posted via http://www.ruby-forum.com/.