Flowdock
method

content_type=

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActionController::Response

Method deprecated or moved

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

These similar methods exist in v4.0.2:

content_type=(mime_type) public

Sets the HTTP response’s content MIME type. For example, in the controller you could write this:

 response.content_type = "text/plain"

If a character set has been defined for this response (see charset=) then the character set information will also be included in the content type information.

Show source
Register or log in to add new notes.