I am following a simple process to call images from database. I will explain my process and problem so that it is easy for you to answer.
- In assets/images I will save my images.
- In the database I have created t.images:string and will give the image name
How to define the image_tag in the show and index pages.
What I did so far,
In show.html.erb <%= image_tag "url#{@post.image}" %>
In index.html.erb <%= image_tag post.image.url, :size => "100x100" %>
But I am getting this error