Skip to content

Commit

Permalink
Merge pull request #49712 from MatheusRich/mr/docs-for-action-mailer-…
Browse files Browse the repository at this point in the history
…asset-host

[ci skip] Update Action Mailer guide on how to add images
  • Loading branch information
adrianna-chang-shopify committed Oct 25, 2023
2 parents 4c5c904 + f18e3d3 commit 02fa5c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion guides/source/action_mailer_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,13 @@ As the `:asset_host` usually is consistent across the application you can
configure it globally in `config/application.rb`:

```ruby
config.asset_host = 'http://example.com'
config.action_mailer.asset_host = 'http://example.com'
```

NOTE: Because we can't infer the protocol from the request, you'll need to
specify a protocol such as `http://` or `https://` in the
`:asset_host` config.

Now you can display an image inside your email.

```html+erb
Expand Down

0 comments on commit 02fa5c2

Please sign in to comment.