plataformatec/simple_form — pull request #419 by carlosantoniodasilva (2012-01-26 19:45:52+00:00)
Title: Boolean style

This addresses issues #414, #413, and #314, adding a new `boolean_style` config which allows you to set how you'd like check boxes and radio buttons to be generated, when using the `:boolean` input or collection radio/check boxes. Options are:

* `:inline` (default): input + label
* `:nested`: label > input

Some other minor fixes and improvements:

* Remove SimpleForm configs from ActionView builder helpers, they now belong to the related collection input.
* Allow ActionView builder helpers to receive a block, making it more flexible for the user to handle how label/input should be handled. It's used internally by SimpleForm to generate the `:nested` inputs.
* Strip spaces from css class names for labels and inputs. We were generating classes like `class="string optional "`.