apply_form_for_options!(object, options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/helpers/form_helper.rb, line 463
      def apply_form_for_options!(object, options) # :nodoc:
        object = convert_to_model(object)

        as = options[:as]
        namespace = options[:namespace]
        action = object.respond_to?(:persisted?) && object.persisted? ? :edit : :new
        options[:html] ||= {}
        options[:html].reverse_merge!(
          class:  as ? "#{action}_#{as}" : dom_class(object, action),
          id:     (as ? [namespace, action, as] : [namespace, dom_id(object, action)]).compact.join("_").presence,
        )
      end
Register or log in to add new notes.