title: How to output text in rthml without <%=variable%>
body: <p>I've been looking around for a solution to this question for the last couple of days.  It's a simple annoyance, but I hate not knowing how to do things...</p>
  
  <p>Environment: Ruby, Rails, rhtml</p>
  
  <p>The Problem: When I iterate a collection in rhtml I would like to reduce the number of &lt;% %> and &lt;%= %> tags I use.  The following seems bloated:</p>
  
  <p><a href="http://www.tutorialspoint.com/ruby-on-rails/rails-and-rhtml.htm" rel="nofollow noreferrer">Example</a></p>
  
  <pre><code>&lt;% @products.each do |p| %&gt;
    &lt;%=  @p.name %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>EDIT: how do I exclude &lt;%= %> inside of a block?</p>
  
  <p>I would much rather do: </p>
  
  <pre><code>&lt;% @products.each do |p| 
    puts @p.name 
  end %&gt;
  </code></pre>
  
  <p>Certain situations could allow for use of either... However, I know that I could do this with jsp:</p>
  
  <pre><code>&lt;% for(int i=0; i&lt;10;i++){
    System.out.print(i);
  } %&gt;
  </code></pre>
  
  <p>Thanks in advance for your input.</p>