class ActionView::Helpers::FormBuilder - gettext_rails-2.1.0 Documentation

# class ActionView::Helpers::FormBuilder

### Public Instance Methods

label_with_gettext(method, text = nil, options = {}) click to toggle source

    # File lib/gettext_rails/action_view/form_builder.rb, line 19
    def label_with_gettext(method, text = nil, options = {})
      text ||= s_("#{@object.class}|#{method.to_s.humanize}")
      @template.label(@object_name, method, text, options.merge(:object => @object))
    end