title: Rails Can't Display Google Maps Embedded API
body: <p>In my rails app, I am trying to use the Google Maps embedded API. </p>
  
  <p>Everthing is working fine when i use:</p>
  
  <pre><code>    &lt;iframe width="500" height="300" frameborder="0" style="border:0"
        src="https://www.google.com/maps/embed/v1/place?key=AIzaSyDBvzq5WsidARhAZ0821MB1iAMTPnHiamI&amp;q=3177 shawnee ct,cameron park,ca,95682" allowfullscreen&gt;
      &lt;/iframe&gt;
  </code></pre>
  
  <p>This works and the map displays. But that is with explicitly saying the address. </p>
  
  <p>My Model has a <code>:full_address</code> field and a <code>:longitude</code> and <code>:latitude</code> fields. </p>
  
  <p>I am trying to do the following:</p>
  
  <pre><code>    &lt;iframe width="500" height="300" frameborder="0" style="border:0"
        src="https://www.google.com/maps/embed/v1/place?key=AIzaSyDBvzq5WsidARhAZ0821MB1iAMTPnHiamI&amp;q=#{@job.jobsite.full_address}" allowfullscreen&gt;
      &lt;/iframe&gt;
  </code></pre>
  
  <p>But its not recognizing my rails object of <code>@job.jobsite.full_address</code>. I already know that there is an address stored there, and I tested it with the static map API and everything worked fine. </p>
  
  <p>But when i try to render the map it gives me the error: </p>
  
  <blockquote>
    <p>The Google Maps API server rejected your request. Invalid request.
    Invalid 'q' parameter.</p>
  </blockquote>
  
  <p>Can anyone tell me why <code>@job.jobsite.full_address</code> is not working in side that url I am providing? </p>