plataformatec/simple_form — Issue #445: How to use associations with twitter bootstrap?
Author: RKushnir
Created: 2012-02-10 17:07:40+00:00
State: open

I'm using the 2.0.0.rc version and I have a model `User.belongs_to :location`. In the form for user I would like to prepend an icon to the select box for `location` like this:

= f.association :location, :wrapper => :prepend do
= content_tag :span, :class => "add-on" do
%i.icon-home
= f.input_field :location

But this just shows me a text field with `#` instead of select. How to do this properly? I couldn't find an example for associations in your example app.