Custom submit button in simple_form and bootstrap 3

simple_form is very powerful gem allowing to customize almost everything while rendering form elements. In this post we will add a new custom component to simple_form for better rendering of submit buttons.

Our aim is adding a new component to simple_form so we can write:

= f.button :submit_cancel, 'Save'

that will render

which is suitable for bootstrap 3 in horizontal form.

The solution is presented on

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>