Active Text Attachments (Images/Video) display in carousel
Ok maybe what im actually after is a little more clarity on how the _blob partial works? If I upload multiple images in an action text field, does rails upload these as one attachment or separate attachments? Is there somewhere in that loops through the attachments and renders the _blob partial I'm missing? any pointing in the right direction would be great...
ActionText handles all that internally in their helper. You can read through this and get an understanding of how it works. Basically it's just looking for all the attachments and then looking up the model with a Signed GlobalID and rendering the associated partial for it.
https://github.com/rails/rails/blob/master/actiontext/app/helpers/action_text/content_helper.rb#L20
https://github.com/rails/rails/blob/master/actiontext/app/helpers/action_text/content_helper.rb#L20
Notifications
You’re not receiving notifications from this thread.