Hey guys I\'m a rails newbie and I have a question about select boxes in forms. Here is my code right now.
<%= form_for @message do |f| %> <%= f.text_
Yes, what you want is easy to do. Just add a pair of values, your placeholder text and a blank value, to the beginning of your select options. Try this:
<%= f.select :topic, [['Please select an option', nil], 'Test1', 'test2'] %>