From: Brian Candler Date: 2009-09-09T23:07:08+09:00 Subject: Re: accessing Name and value pair using "Sinatra" Ken Ghosh wrote: > ####### this is my sinatra code############3 > > get '/multiquery.xml' do > content_type('text/xml') > array_of_names = params[:name] > '#{construct_xml(array_of_names)}' > end Single quotes prevent any expansion taking place. In this case, you are literally returning the string #{construct_xml(array_of_names)} to the browser. Use double quotes, or better, just omit the "#{...}" construction entirely, since you're just putting a string inside a string. -- Posted via http://www.ruby-forum.com/.