Ruby on Rails latest stable (v4.1.8) - 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.1.8:

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.