我都试过:
= f.submit, :class => "form_submit"
和
= f.submit { :class => "form_submit" }
它工作得很好
= f.submit
这是我的完整导轨表格。
= form_for @organization do |f|
%div
.description
= f.label :description
= f.text_area :description, :rows => 4, :class => 'ckeditor'
= f.submit, :class => "form_submit"