B
B
bismoney2015-11-16 11:43:30
Ruby on Rails
bismoney, 2015-11-16 11:43:30

Image output?

Hello.
I take the picture like this

= post.post_attachments.each do |attach|
 - attach.main_image.url

Displays
/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">]

What's the catch?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2015-11-16
@bismoney

Take it away and you'll be happy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question