title: Submit link inside text field with Rails
body: <p>I have a simple search form with Rails 3.1 and instead of having a submit button, I want a magnifying glass image that when you click on it, is a link to submit the form inside the text box (text_field_tag). An example would be in the Firefox browser, the input box with all the search engines. I tried googling how to do it to no success. So far I have this:</p>
  
  <pre><code> = form_tag("/search", :method =&gt; "get", :class =&gt; "search-forum") do
    = label_tag "Search for:"
    = text_field_tag :search
    = submit_tag "Search", :class =&gt; "search-submit"
  </code></pre>
  
  <p>What's the best way to accomplish this?</p>