ruby-on-railsformtastic

Rails: Formtastic: Select-Boxes without primary blank field


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.


Solution

  • Have you tried :include_blank => false ?

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