Tag Archives: forms

oooh! Select me

Selects options have always been a mystery to me….  Here is an example that I got working.  The include_blank is pretty useful, it sets the value to “” and shows ‘none’

 =f.select :food,  ["burrito", "taco", "yums"], :selected => ("#{@my.foods.blank?}" || 'none' ), :include_blank => 'none'
24
Tagged