You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all! Stumbled across this gem (pun intended) a couple weeks ago and am quite impressed with it! I have a question regarding a repeater with an attachment, however. I have a repeater with an image, and was able to access the image tag helper like so:
<% repeater(:name) do |part| %> <%= part.content.image_tag(:image_part...) %>
But I'm having trouble doing the same with attachments. I've tried
<% repeater(:name) do |part| %> <%= part.content.attachment_url(:attachment_part) %>
and
<% repeater(:name) do |part| %> <%= content.attachment_url(:name) %>
And maybe a few more but at this point I don't remember them all.
Curiously, I've noticed that I can download the attachment from the media library and have no problem using the attachment_url helper when it's a single attachment. I've also noticed that the signed_blob_id attribute of the part is populated for the single attachment, but is blank when the attachment is part of a repeater.
I'd be happy to tackle this, but I wanted to double check this wasn't known or intended or anything before I put too much time into it!
The text was updated successfully, but these errors were encountered:
Hi all! Stumbled across this gem (pun intended) a couple weeks ago and am quite impressed with it! I have a question regarding a repeater with an attachment, however. I have a repeater with an image, and was able to access the image tag helper like so:
But I'm having trouble doing the same with attachments. I've tried
and
And maybe a few more but at this point I don't remember them all.
Curiously, I've noticed that I can download the attachment from the media library and have no problem using the
attachment_url
helper when it's a single attachment. I've also noticed that thesigned_blob_id
attribute of the part is populated for the single attachment, but is blank when the attachment is part of a repeater.I'd be happy to tackle this, but I wanted to double check this wasn't known or intended or anything before I put too much time into it!
The text was updated successfully, but these errors were encountered: