title: Rails : Using local variable for an image path
body: <p>I have a simple cms, and basically I have a detailed view of sauces which has an image.
  In the database table I have the pictures' URL stored.
  When I want to display the image, and put the variable where the image_tag url should go, the program throws an error. How do I do this?</p>
  
  <blockquote>
  <pre><code>&lt;tr&gt;
    &lt;th&gt;Picture&lt;/th&gt;
    &lt;td&gt;&lt;%= image_tag("sauces/sauces_piri.png") %&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  </blockquote>
  
  <p>thats the URL put in manually which works. The EXACT same string is stored in the database in a field called pic_url.
  I already have a variable which stores the sauce object. How do I put the sauce field, instead of the direct URL.</p>
  
  <p>I have tried</p>
  
  <blockquote>
  <pre><code>&lt;tr&gt;
    &lt;th&gt;Picture&lt;/th&gt;
    &lt;td&gt;&lt;%= image_tag("#{sauce.pic_url}") %&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  </blockquote>
  
  <p>This does not work</p>