title: how to build a select tag from a range in rails
body: <p>I want to have a drop down that consists of values 10% 20% 30% so on till 100. </p>
  
  <p>In ruby It can be done by </p>
  
  <pre><code>(10..100).step(10) { |i| p i }
  </code></pre>
  
  <p>how can i convert this into a select tag?</p>
  
  <p>I tried: </p>
  
  <pre><code>&lt;%=p.select :thc, options_for_select((10..100).step(10) {|s| ["#{s}%", s]})%&gt;
  </code></pre>
  
  <p>but this is printing <code>10 11 12 13....100</code></p>