title: Rails views double quotes/single quotes not enough
body: <pre><code>&lt;%= render 'shared/modal',
      id: 'assignToModal', 
      button: '&lt;button onclick="groupAssignTo('&lt;%= _id %&gt;');"&gt;Assign&lt;/button&gt;' %&gt;
  </code></pre>
  
  <p>Consider the above code in a rails app view file(.html.erb). It will throw a,</p>
  
  <pre><code>ActionView::Template::Error (/home/think/../app/views/junks/_abc.html.erb:39: 
  syntax error, unexpected tIDENTIFIER, expecting keyword_end
  </code></pre>
  
  <p>Its because in the button local of the render statement, the single quote starts <strong>before &lt;</strong> and does not end <strong>after ></strong>, instead ends <strong>before &lt;%=</strong></p>
  
  <p>How to approach this?</p>