Sha256: d8d0817b314da538575f3f92f78c7477bbb5fc2d90d1772998b05536582a98fb
Contents?: true
Size: 330 Bytes
Versions: 6
Compression:
Stored size: 330 Bytes
Contents
class SimpleForm::FormBuilder def commit_button_or_cancel template.content_tag :div, :class => 'buttons' do String.new.tap do |html| html << button(:submit) html << " or " html << template.link_to(template.t('simple_form.buttons.cancel'), :back, :class => 'cancel') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems