Answer the question
In order to leave comments, you need to log in
Ruby and Rails image output?
Hello again, a lot of questions just about RoR)
I have a slim template engine.
I added a paperclip image to the post
. If I output the path to the image, for example, p = post.photo.url
then it will be displayed as
<p>/system/posts/photo/000/000/001/original/b4d18d7753eaa35ca60c2e591d8889d2.jpg?1445519888</p>
div class="test" style="background-image: url(post.photo.url)"
<div class="test" style="background-image: url(post.photo.url)">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question