title: No implicit conversion of Array into String?
body: <p>I have a Sinatra application with the following GET method that takes the URL passed in:</p>
  
  <pre><code>get  %r{/html/(.+)}  do 
    url = params[:captures] # stores url =&gt; http://www.example.com
  
    gethtml(url)
  end
  </code></pre>
  
  <p>However, when <code>gethtml(url)</code> is called, it raises the error <code>Sinatra no implicit conversion of Array into String</code>.</p>
  
  <p><code>gethtml</code> accepts input such as <code>http://example.com</code>.</p>
  
  <p>I know this is a data-type conversion issue and I tried calling <code>to_s</code> but it did not work.</p>
  
  <p>Any help would be appreciated.</p>