It seems that :class appears to control the class of the parent form, not the button itself.
I want to add the class btn primary to the button.
If I can’t do it directly, can I do it using the form class and SASS? (using @extend or something similar)?
You need to make sure that
:class => "btn primary"is the third argument of thebutton_tocall.If you’re doing this:
You are actually saying:
So you should change it to:
I try to avoid using hashes for paths altogether, and use the generated routing methods.