Note that there are some explanatory texts on larger screens.

plurals
  1. POSelf-closing tags can't have content?
    primarykey
    data
    text
    <p>I am trying to use mailer layout for my emails, I have put <code>notifications_mailer.html.erb</code> in the layouts folder, and I have a view for the email <code>migration_message.html.haml</code></p> <p>But why would I have this internal server error 500:</p> <blockquote> <p>Self-closing tags can't have content</p> </blockquote> <p>In the <code>notifications_mailer.html.erb</code> I have:</p> <pre><code>&lt;div class="article-content" align="left" style="font-size: 13px;line-height: 18px;color: #444;margin-top: 0;margin-bottom: 18px;font-family: 'Helvetica Neue', Arial, Helvetica, Geneva, sans-serif"&gt; &lt;%= yield %&gt; &lt;/div&gt; </code></pre> <p>Isn't this the way to add yield in the mailer layout ?</p> <p>Where shall debug this error ? is there a gem to test emails at browser before testing them on the real server ?</p> <p>EDIT</p> <p>Code for <code>migration_message.html.haml</code></p> <pre><code>=content_for :title do Hello fan! %p %span{:id =&gt; "internal-source-marker_0.12735640932997944"} We are happy to inform you about our new website, in which you can find new features. You have registered with us in our previous website, therefore we are very glad to inform you about our new one. %p %span Take a look at the #{link_to 'Virtual Circuit Lab', lab_path} &amp; check the Lab #{link_to 'Features', features_path} If you’ve already checked out the site, Follow our #{link_to 'Facebook page', "https://www.facebook.com/ourwebsite"} and invite a friend to do the same! %br/  </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload