Examples

        %= button 'The example 5' => large, warning

        <button class="btn btn-lg btn-warning">The example 5</button>

An ordinary button, with applied strappings.

        %= button 'The example 1' => ['http://www.example.com/'], small

        <a class="btn btn-default btn-sm" href="http://www.example.com/">The example 1</a>

With a url the button turns into a link.

The example 1

        %= submit_button 'Save 2', primary

        <button class="btn btn-primary" type="submit">Save 2</button>

A submit button for use in forms. It overrides the build-in submit_button helper.

        %= submit_button 'Save 2', primary, disabled

        <button class="btn btn-primary" disabled="disabled" type="submit">Save 2</button>

        %= button 'The example 2' => [url_for]

        <a class="btn btn-default" href="/button_1_5">The example 2</a>

The example 2

        %= button 'The example 3' => ['panel_1']

        <a class="btn btn-default" href="panel_1">The example 3</a>

The example 3

        %= button 'The example 4'

        <button class="btn btn-default">The example 4</button>

        %= button [url_for], disabled, begin
           The Example 6
        %  end

        <a class="btn btn-default disabled" href="/button_1_8"> The Example 6 </a>

The Example 6

        %= submit_button 'Save 1'

        <button class="btn btn-default" type="submit">Save 1</button>

        %= button 'Loop', active

        <button class="active btn btn-default">Loop</button>

        %= button 'Loop', block

        <button class="block btn btn-default">Loop</button>