multipart_form

multipart_form(action = nil, enctype = "multipart/form-data")
Instance Public methods

Generate a Form element with multipart encoding as a String.

Multipart encoding is used for forms that include file uploads.

action is the action to perform. enctype is the encoding type, which defaults to âmultipart/form-dataâ.

Alternatively, the attributes can be specified as a hash.

multipart_form{ "string" }
  # <FORM METHOD="post" ENCTYPE="multipart/form-data">string</FORM>

multipart_form("url") { "string" }
  # <FORM METHOD="post" ACTION="url" ENCTYPE="multipart/form-data">string</FORM>
doc_ruby_on_rails
2015-03-31 21:53:31
Comments
Leave a Comment

Please login to continue.