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

Cannot render template for Bamboo #28

Open
dannote opened this issue Sep 21, 2016 · 1 comment
Open

Cannot render template for Bamboo #28

dannote opened this issue Sep 21, 2016 · 1 comment
Labels

Comments

@dannote
Copy link

dannote commented Sep 21, 2016

I'm trying to use Slime templates in Bamboo and here is what I get. I suppose that render_to_string expects a binary, not a safe string. Phoenix.Template.EExEngine works fine here.

Request: POST /lead/join
** (exit) an exception was raised:
    ** (ArgumentError) argument error
        :erlang.iolist_to_binary({:safe, ["" | "a"]})
        (phoenix) lib/phoenix/view.ex:342: Phoenix.View.render_to_string/3
        (bamboo) lib/bamboo/phoenix.ex:247: Bamboo.Phoenix.render_html_and_text_emails/1
@doomspork
Copy link
Member

Thanks for the report @dannote! I haven't personally used PhoenixSlim + Bamboo, might you have a example project I can bang on? Additionally, is this something you'd be keen to try and fix?

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

No branches or pull requests

2 participants