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

Mailer preview now uses url_for to fix links to emails for apps runnin... #19093

Merged
merged 1 commit into from
May 3, 2015
Merged

Mailer preview now uses url_for to fix links to emails for apps runnin... #19093

merged 1 commit into from
May 3, 2015

Conversation

remomueller
Copy link
Contributor

...g on a subdirectory, closes #19092.

@pixeltrix
Copy link
Contributor

Looks like the build was affected by the bug @eileencodes mentioned in https://twitter.com/eileencodes/status/572047555875479552

@pixeltrix
Copy link
Contributor

Wonder whether we should add named routes for this with an _ prefix?

@remomueller
Copy link
Contributor Author

If named routes fixes the urls, that'd be fine too, I'm however not sure if it is needed for this as Rails favors convention over configuration. Also not sure if there's a present need or use case for making it a named route. Thoughts?

@remomueller
Copy link
Contributor Author

Anything else needed for this? It'd be great to see this in Rails as I've had a solution ready for almost a year now to get this fixed. Thanks!

@remomueller
Copy link
Contributor Author

Hi all, I rebased the code so that it can be automatically merged, it looks like it's failing due to an unrelated bug in rails at the moment though.

rafaelfranca added a commit that referenced this pull request May 3, 2015
…inks-on-subdirectories

Mailer preview now uses `url_for` to fix links to emails for apps runnin...
@rafaelfranca rafaelfranca merged commit 39b0411 into rails:master May 3, 2015
rafaelfranca added a commit that referenced this pull request May 4, 2015
…inks-on-subdirectories

Mailer preview now uses `url_for` to fix links to emails for apps runnin...
@rafaelfranca
Copy link
Member

Backported as 037e1f0 and 3e9b34e

rafaelfranca added a commit that referenced this pull request May 4, 2015
…inks-on-subdirectories

Mailer preview now uses `url_for` to fix links to emails for apps runnin...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ActionMailer Preview doesn't generate correct links on Rails apps loaded on subdirectories.
3 participants