title: Passing variables into single quoted strings in Rails
body: <p>Hi I am trying to complete a college project for the weekend and have hit a speed bump.</p>
  
  <p>The basic idea of the project is displaying geotagged tweets on google maps using rails and jQuery Mobile. Rather than use the twitter api I opted for the datasift streaming api.</p>
  
  <p>In order for this to work i need to pass a query string to the datasift api which looks like this:</p>
  
  <pre><code>'twitter.geo exists AND interaction.geo geo_radius "53.33754457198889,-6.267493000000059:10"'
  </code></pre>
  
  <p>where the geolocation "53.33754457198889,-6.267493000000059" is the centre and the "10" the the radius in miles around which to capture geotagged tweets.</p>
  
  <p>I want to pass variables in the string eg </p>
  
  <pre><code>'twitter.geo exists AND interaction.geo geo_radius "#{@users_location}:#{radius}"'
  </code></pre>
  
  <p>but the single quotes mean I can't do this with this string I have tried to concatenate the string in different ways with no joy so if anybody has some advice or a solution I'd appreciate it</p>