plataformatec/simple_form — Issue #502: simpleform bootstrap and haml
Author: JensC
Created: 2012-03-05 15:41:15+00:00
State: open

Hi All,

I am not sure if this is a bug or just another case of RTFM!
I have a hard time to convince simpleform 2.0.1 (installed with 'rails g simple_form:install --bootstrap') to create the correct html markup. I am using haml (3.1.4).

The haml code looks like that:

= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: {class: 'form-horizontal' }) do |f|
= devise_error_messages!
%fieldset
= f.text_field :name, label: 'Vor- und Nachname'
= f.text_field :cooperation, label: 'Firma'
...

And the created markup is:

...

This is not quite what I've expected. Am I missing somethig? (Of course I have restarted my web server).
Sorry to bother you with this issue.

Thanks a milllion
Jens