title: How to pass seeded image data into Rails views?
body: <p>I seeded my Rails db with the following for Posts: title, description, body, and image. For image I used data in the assets. So for example in the seed file I have:</p>
  
  <pre><code>post_image: '/images/main.image.jpg'
  </code></pre>
  
  <p>I'm able to hit all the other data in the views doing the typical:</p>
  
  <pre><code>&lt;%= post.title %&gt;
  </code></pre>
  
  <p>How do I pull in the image? I've tried the following to no avail:</p>
  
  <ul>
  <li>&lt;%= asset_path('post.post_image')%>. Nothing appears</li>
  <li>&lt;%= asset_url('post.post_image')%>. I get <a href="http://localhost:3000/post.main.image.jpg" rel="nofollow noreferrer">http://localhost:3000/post.main.image.jpg</a></li>
  <li>&lt;%= image_tag('post.post_image')%>. I get a small icon with Post next to it but not a full image.</li>
  <li>&lt;%= image_tag @post_image%>. I get a small icon but not a full image.</li>
  <li>&lt;%= image_alt(post.post_image) %>. I get at main.image.jpg present</li>
  </ul>
  
  <p>Did I seed incorrectly or am I just using the wrong helper to get the image?</p>