title: Rails 3.1, can't make link_to image_path?
body: <p>I want to make a fairly straightforward image link that uses an image from my assets. Getting weird errors. First I tried:</p>
  
  <pre><code>&lt;%= link_to assets_path "town.png", 'index' %&gt;
  </code></pre>
  
  <p>and got the error</p>
  
  <pre><code>Started GET "/" for 127.0.0.1 at Wed Nov 30 17:27:10 -0500 2011
  Processing by PagesController#intro as HTML
  Rendered pages/intro.html.erb within layouts/application (114.9ms)
  Completed 500 Internal Server Error in 124ms
  
  ActionView::Template::Error (undefined method `assets_path' for #&lt;#&lt;Class:0x10fdc4898&gt;:0x10fdaad58&gt;):
  1: &lt;body onload="init();"&gt;
  2:  &lt;div id = "wrapper2"&gt;
  3:  &lt;div class="intro_txt"&gt;
  4:      &lt;%= link_to assets_path "town.png", 'index' %&gt;
  5:      &lt;br&gt;&lt;br&gt;
  6:  &lt;/div&gt;
  7:  &lt;/div&gt;
   app/views/pages/intro.html.erb:4:in     `_app_views_pages_intro_html_erb__1651075534_2280428740'
  </code></pre>
  
  <p>then I tried the old </p>
  
  <pre><code>&lt;%= link_to image_tag "town.png", 'index' %&gt;
  </code></pre>
  
  <p>and got this bizarre error</p>
  
  <pre><code>ActionView::Template::Error (undefined method `symbolize_keys!' for "index":String):
  1: &lt;body onload="init();"&gt;
  2:  &lt;div id = "wrapper2"&gt;
  3:  &lt;div class="intro_txt"&gt;
  4:      &lt;%= link_to image_tag "townProjectText.png", 'index' %&gt;
  5:      &lt;br&gt;&lt;br&gt;
  6:  &lt;/div&gt;
  7:  &lt;/div&gt;
  app/views/pages/intro.html.erb:4:in `_app_views_pages_intro_html_erb__1651075534_2279838600'
  </code></pre>
  
  <p>What to do?</p>