Q:

Generate a select element for years in Ruby

I need a drop down list that just shows the years from 1990 to 2014. 
I've tried:
<%= select_tag "year", [1900..2014] %>

But I get:
<select id="year" name="year">[1900..2014]</select>

Any suggestions? 

A:

Try to add options_for_select
<%= select_tag "year", options_for_select(1900..2014) %>

