From: Valen Date: 2006-05-12T10:19:58+09:00 Subject: Two small questions I play Ruby without rails: <% @connection = Mysql.new('localhost', 'root', '', 'carpart')%> <%= query = 'Select * from `store` where `part`="Stuff on shelf" ' %> <% list = @connection.query(query) %> and it works, but when I try to use a="Stuff on shelf" and I have <%= query = 'Select * from `store` where `part`=' + "#{a}" %> operator <% list = @connection.query(query) %> raises MYSQL error, so I cannot change string "Stuff on shelf" by variable a. I tried different ways, but in vain. And the second question: How to insert in *.rhtml file another *.rhtml file by using ruby operator insert or other? -- Posted via http://www.ruby-forum.com/.