Rails: Formtastic: Select-Boxes without primary blank field

Joern Akkermann picture Joern Akkermann · May 26, 2010 · Viewed 10k times · Source

it's about Rails and Formtastic.

How can I add a select box with formtastic without an initial/primary blank field? So that the initially selected item is the first item with content.

Thanks!

Yours, Joern.

Answer

tsdbrown picture tsdbrown · May 26, 2010

Have you tried :include_blank => false ?

According to this (line 718) http://github.com/justinfrench/formtastic/blob/master/lib/formtastic.rb that should work.