%= button 'The example 5' => large, warning
<button class="btn btn-lg btn-warning" type="button">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.
%= 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>
%= button 'The example 3' => ['panel_1']
<a class="btn btn-default" href="panel_1">The example 3</a>
%= button 'The example 4'
<button class="btn btn-default" type="button">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>
%= submit_button 'Save 1'
<button class="btn btn-default" type="submit">Save 1</button>
%= button 'Loop', active
<button class="active btn btn-default" type="button">Loop</button>
%= button 'Loop', block
<button class="block btn btn-default" type="button">Loop</button>