In my sample project for the previous rails versions I would access the images as
<%= image_tag(product.image_url, :class => 'list_image') %>
How can I do the same in rails 3.1 since the images folder has been moved to app/assets/ ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Links like this:
become:
Rails does some magic to figure out that it’s actually in the images directory. So no need to specify the images directory.