Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No asset filename hashes in ActionMailer views #2584

Closed
iamveen opened this issue Aug 19, 2011 · 4 comments
Closed

No asset filename hashes in ActionMailer views #2584

iamveen opened this issue Aug 19, 2011 · 4 comments

Comments

@iamveen
Copy link

iamveen commented Aug 19, 2011

This is occurring on 3.1.0rc6. Basically the md5 hash that gets appended to assets when using image_tag is not present when used in ActionMailer views. So the resulting url does not work.

I created a vanilla rails app to make sure something I did isn't causing this.

Here is the result using the same erb view to render via ActionController and ActionMailer:

ActionController:

<img alt="Rails" src="/assets/rails-ccbe0ffcfe6f841608020ae576f7ac1c.png" />

ActionMailer:

>> TestMailer.test_email.body
=> <img alt="Rails" src="http://assets.example.com/assets/rails.png" />
@vijaydev
Copy link
Member

Does this happen in 3.1.1 ?

@jeremyf
Copy link
Contributor

jeremyf commented Apr 28, 2012

@iamveen Are you still having this problem?

(@jeremyf)

@carlosantoniodasilva
Copy link
Member

I'm closing this issue since it's pointing to a release candidate of 3.1 version, and got stale. Please let us know if you are able to reproduce this with 3-2 stable version, and we'll gladly reopen. Thanks!

@rdetert
Copy link

rdetert commented Sep 30, 2016

I have this happening in Rails 5.0.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants