Select Box population

I would like to populate a select box in rails with the values 0 - 100 -
how can this be done in rails?

Mike wrote:

I would like to populate a select box in rails with the values 0 - 100 -
how can this be done in rails?

any ideas anyone?

I would like to populate a select box in rails with the values 0 - 100 -
how can this be done in rails?

any ideas anyone?

<% 1.upto(100) do |i| %>

<%= i %> <% end %>

Justin

Also,

<%= select_tag(“value”, options_for_select((0…100).map { |v| [v.to_s,
v] })) %>

thanks a lot guys - very helpful!