mail_view icon indicating copy to clipboard operation
mail_view copied to clipboard

allow access to the request method

Open benoist opened this issue 12 years ago • 6 comments

I wanted to preview my templates with a different locale. To make this process easier I wanted to change the locale based on the locale param.

benoist avatar Apr 28 '14 13:04 benoist

+1

hilem avatar May 05 '14 22:05 hilem

Something like this would be useful for me as well, but as-is, a bunch of specs fail because to_param is undefined.

lukeasrodgers avatar May 15 '14 01:05 lukeasrodgers

FWIW, here is an alternate implementation that accomplishes roughly the same, without using to_param. All specs pass, afaict.

https://github.com/Headlinerfm/mail_view/commit/8f5669aadacafab9bd648d1ac1f3cf21fb321f91

lukeasrodgers avatar May 30 '14 20:05 lukeasrodgers

:+1:

dtaniwaki avatar Jul 03 '14 03:07 dtaniwaki

👍 it's been a couple of years, I guess the code has settled down nicely no? :)

Honest question, what's up with this repo?

dramalho avatar May 09 '16 12:05 dramalho

I think the latest version included in rails is already sufficient, at least it served my purpose :)

benoist avatar May 09 '16 12:05 benoist