I want to have a drop down that consists of values 10% 20% 30% so on till 100.
In ruby It can be done by
(10..100).step(10) { |i| p i }
<%= select("sale", "discount", (10..100).step(10).collect {|p| [ "#{p}%", p ] }, { :include_blank => true }) %>