An ordinary button, with applied shortcuts:
%= button 'The example 5' => large, warning
<button class="btn btn-lg btn-warning" type="button">The example 5</button>
With a url the button turns into a link:
%= 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>
A submit button for use in forms. It overrides the build-in submit_button helper:
%= submit_button 'Save 2', primary
<button class="btn btn-primary" type="submit">Save 2</button>
%= 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_50">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_76"> 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>