Remove unused method label_tag_for

Couldn't find it in the core or any plugin and the method is broken anyway.

The parameter is 'name', while the variable used later is 'field'.
pull/556/head
Michael Frister 11 years ago
parent c15d57a79c
commit 9fe0e0a05c
  1. 5
      app/helpers/application_helper.rb

@ -854,11 +854,6 @@ module ApplicationHelper
all_languages.collect{|lang| [ ll(lang.to_s, :general_lang_name), lang.to_s]}.sort{|x,y| x.last <=> y.last }
end
def label_tag_for(name, option_tags = nil, options = {})
label_text = l(("field_"+field.to_s.gsub(/\_id\z/, "")).to_sym) + (options.delete(:required) ? @template.content_tag("span", " *", :class => "required"): "")
content_tag("label", label_text)
end
def labelled_tabular_form_for(record, options = {}, &block)
options.reverse_merge!(:builder => TabularFormBuilder, :lang => current_language, :html => {})
options[:html][:class] = 'tabular' unless options[:html].has_key?(:class)

Loading…
Cancel
Save