lib/air_blade/air_budd/form_builder.rb
def object( controls, scaffold, is_remote, record_or_name_or_array, *args, &proc)
        raise ArgumentError, "Missing block" unless block_given?

        options = args.extract_options!

        case record_or_name_or_array
        when String, Symbol
          object_name = record_or_name_or_array
        when Array
          object = record_or_name_or_array.last
          object_name = ActionController::RecordIdentifier.singular_class_name(object)
          @template.apply_form_for_options!(record_or_name_or_array, options)
          args.unshift object
        else
          object = record_or_name_or_array
          object_name = ActionController::RecordIdentifier.singular_class_name(object)
          @template.apply_form_for_options!([object], options)
          args.unshift object
        end

        wrapper_start( controls, scaffold, is_remote, options, object_name, &proc)
        @template.fields_for(object_name, *(args << options), &proc)
        wrapper_end( controls, scaffold, &proc)
      end
# Guts copied from Rails 2.1.0 form_for. 
# The purpose of this method is to let us wrap the content in a div and
# to also make form tag optional
Guts copied from Rails 2.1.0 form_for.
The purpose of this method is to let us wrap the content in a div and
to also make form tag optional
Guts copied from Rails 2 . 1 . 0 form_for . The purpose of this method is to let us wrap the content in a div and to also make form tag optional
def object( controls, scaffold, is_remote, record_or_name_or_array, *args, &proc)
        raise ArgumentError, "Missing block" unless block_given?
        options = args.extract_options!
        case record_or_name_or_array
        when String, Symbol
          object_name = record_or_name_or_array
        when Array
          object = record_or_name_or_array.last
          object_name = ActionController::RecordIdentifier.singular_class_name(object)
          @template.apply_form_for_options!(record_or_name_or_array, options)
          args.unshift object
        else
          object = record_or_name_or_array
          object_name = ActionController::RecordIdentifier.singular_class_name(object)
          @template.apply_form_for_options!([object], options)
          args.unshift object
        end
        wrapper_start( controls, scaffold, is_remote, options, object_name, &proc)
        @template.fields_for(object_name, *(args << options), &proc)
        wrapper_end( controls, scaffold, &proc)
      end
def object ( controls , scaffold , is_remote , record_or_name_or_array , * args , & proc ) raise ArgumentError , "Missing block" unless block_given? options = args . extract_options! case record_or_name_or_array when String , Symbol object_name = record_or_name_or_array when Array object = record_or_name_or_array . last object_name = ActionController :: RecordIdentifier . singular_class_name ( object ) @template . apply_form_for_options! ( record_or_name_or_array , options ) args . unshift object else object = record_or_name_or_array object_name = ActionController :: RecordIdentifier . singular_class_name ( object ) @template . apply_form_for_options! ( [ object ] , options ) args . unshift object end wrapper_start ( controls , scaffold , is_remote , options , object_name , & proc ) @template . fields_for ( object_name , * ( args << options ) , & proc ) wrapper_end ( controls , scaffold , & proc ) end
Guts copied from Rails 2.1.0 form_for.
Guts copied from Rails 2 . 1 . 0 form_for .
controls
scaffold
is_remote
record_or_name_or_array
args
proc