title: Block comments in html.erb templates in rails
body: <p>How do you comment out html mixed with ruby code?</p>
  
  <pre><code>some text &lt;% ... %&gt; more text &lt;%= ... %&gt;
  something else
  &lt;% ... %&gt;
  </code></pre>
  
  <p>In jsp it's real simple: <code>&lt;%-- ... --%&gt;</code>, but I'm unable to find any concise option in rails.</p>
  
  <p>Simple html comments <code>&lt;!-- ... --&gt;</code> do not work: ruby code is still executed and yells errors.  </p>
  
  <p>There's an option to use <code>if false</code> with html comments, but it's quite verbose, not to mention IDEs doesn't support it.</p>
  
  <p>There's also an option coming from pure ruby, which surprisingly works.</p>
  
  <pre><code>&lt;%
  =begin %&gt;
  ... html and ruby code goes here
  &lt;%
  =end %&gt;
  </code></pre>
  
  <p>It's generally fine, except that it's verbose, weird-looking and none of ruby IDEs I know support it (yep, I like to comment/comment-out with one keystroke).</p>
  
  <p>I'm curious, is there any 'official' of doing this in rails?</p>
  
  <p>Thanks!</p>