Correct form class labelled_tabular_form_for uses

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2612/head
Alex Coles 10 years ago
parent 979de690ea
commit 58d0907732
  1. 2
      app/helpers/application_helper.rb

@ -424,7 +424,7 @@ module ApplicationHelper
def labelled_tabular_form_for(record, options = {}, &block) def labelled_tabular_form_for(record, options = {}, &block)
options.reverse_merge!(builder: TabularFormBuilder, lang: current_language, html: {}) options.reverse_merge!(builder: TabularFormBuilder, lang: current_language, html: {})
options[:html][:class] = 'tabular' unless options[:html].has_key?(:class) options[:html][:class] = 'form' unless options[:html].has_key?(:class)
form_for(record, options, &block) form_for(record, options, &block)
end end

Loading…
Cancel
Save