Open GabrielLyonB opened 1 year ago
@GabrielLyonB If you want help it'd be great for you to create a sample project for the community to clone and debug.
FYI here's how I use it in my project:
def email_special
respond_to do |format|
format.text { render layout: false }
format.mjml { render layout: false }
end
end
Hello, i think this might be something basic that i am not understanding.
I got a mailer like this:
This is not working. Clearly i am doing something wrong. I want to only override the general
mjml_layout
for the one method, in this example theanother_method
. I tried overriding the general layout like a controller using'new_mjml_layout', only: [:another_method]
and'mjml_layout', except: [:another_method]
but that didn't work either. What am i doing wrong? This is no how it works? This just can't be done?