Rails 3: f.select - options_for_select

后端 未结 6 1411
你的背包
你的背包 2021-01-31 16:47

I have a form on my Ruby on Rails3 Application with a drop menu, this is my current code for the select option:

<%= f.select :phone_type, options_for_select([         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-01-31 16:54

    Adding the ["Select One", ""] causes the edit screen to alway display "Select One" rather than the stored value. Rails 3.1 (2012 Aug 17)

提交回复
热议问题