I am having very difficulties to display images on production. The images are showing perfectly fine in local development but once it goes to production, it displays nothing. There are a few lines of code I have tried
System.pdf.erb
#1
<img src="'<%= url_for(system.last.image)%>"> <br><br><hr>
#2
<%= wicked_pdf_image_tag
system.last.image.service_url.gsub("https", "http") %>
#3
<%= wicked_pdf_image_tag
system.last.image.service_url.gsub("https", "http") %>
#4
<img src="<%= system.last.image.variant(resize:
"590").processed.service_url %>">
Gemfile
gem 'wicked_pdf'
gem 'wkhtmltopdf-binary'
None of above works. Please help.