Answer the question
In order to leave comments, you need to log in
Image output?
Hello.
I take the picture like this
= post.post_attachments.each do |attach|
- attach.main_image.url
/news/images/s8/post/16/eeaead1c2604eb3df607ea3f440f6e08.jpg[#<PostAttachment id: 11, main_image: "eeaead1c2604eb3df607ea3f440f6e08.jpg", news_photo: nil, post_id: 16, created_at: "2015-11-16 08:13:38", updated_at: "2015-11-16 08:13:38">]
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