I'm having problems using any form of asset pipeline in my inbox, whether it be Mailer itself or a view.
As a result, an empty src image tag is also created.
<%= image_tag "emails/header-general.png" %>
An empty image tag is as follows:
img alt = "General Title"
The following form of attaching a file to a model and using it in a view gives a blank image.
attachments.inline['header.jpg'] = 'emails/header-general.png' ... <%= image_tag attachments['header.png'] %>
I checked the path and even tried with several paths and so on, but no luck. Please help. Any form of including an image in a letter will be helpful.
Here is the production version.
Xenium::Application.configure do
Thanks!
source share