From: 7stud -- Date: 2011-05-18T04:16:59+09:00 Subject: Re: Ruby/Sinatra - Variable inside erb calls Eugen Ciur wrote in post #999234: > > (drop ':' operator, it is not necessary). > According to the Sinatra docs, it must be a symbol. So I would just use string interpolation: erb :"templates/#{style}/layout" -- Posted via http://www.ruby-forum.com/.