title: How to concatenate integer to string in ERB?
body: <p>If item_counter=213 then I want to set item_id to "item213". Seems easy but:</p>
  
  <pre><code>&lt;% item_id = "item" + item_counter %&gt;
  </code></pre>
  
  <p>results in an error: <code>can't convert Fixnum into String</code></p>
  
  <pre><code>&lt;% item_id = "item" + item_counter.chr %&gt;
  </code></pre>
  
  <p>outputs a strange character: <code>item</code></p>
  
  <pre><code>   &lt;% item_id = "item#item_counter" %&gt;
  </code></pre>
  
  <p>is understood as <code>item#item_counter</code></p>
  
  <p>What is the correct way to concatenate an integer to a string in ERB (Ruby on rails 3)?</p>