ryanb / letter_opener

Preview mail in the browser instead of sending.
MIT License
3.71k stars 236 forks source link

image not loading #154

Closed faizaankhan closed 6 years ago

faizaankhan commented 6 years ago

Letter opener never shows the images (assets) in the development environment. Is there some change required in the configuration?

nashby commented 6 years ago

Can you please provide a sample application that reproduces the error?

faizaankhan commented 6 years ago

Add in your development.rb

config.action_controller.asset_host = "http://localhost:3000"
config.action_mailer.asset_host     = "http://localhost:3000"

The question was very specific, wanting a sample application for configuration related question is not so cool.

Salomanuel commented 1 year ago

how can this be accomplished on Staging env as well?