I've both tried:
= f.submit, :class => "form_submit"
and
= f.submit { :class => "form_submit" }
It works just fine with just
= f.submit
Here is my full rails form.
= form_for @organization do |f|
%div
.description
= f.label :description
= f.text_area :description, :rows => 4, :class => 'ckeditor'
= f.submit, :class => "form_submit"
= f.submit 'button_name',:class => "form_submit"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With