method

model_name

rails latest stable - Class: ActionView::Helpers::FormBuilder

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

model_name()
public

No documentation available.

# File actionpack/lib/action_view/helpers/form_helper.rb, line 1218
      def self.model_name
        @model_name ||= Struct.new(:partial_path).new(name.demodulize.underscore.sub!(/_builder$/, ''))
      end