Flowdock
method

respond_to

Importance_1
Ruby on Rails latest stable (v4.2.7) - 1 note - Class: ActionController::MimeResponds::ClassMethods

Method deprecated or moved

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

These similar methods exist in v4.2.7:

respond_to(*) public

No documentation

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

Show source
Register or log in to add new notes.
November 19, 2014
0 thanks

Also useful without respond_with

Using the class method #respond_to allows controller-level specification of the allowed mime-types. Without #respond_with , it enables a

Completed 406 Not Acceptable

response rather than

ActionView::MissingTemplate

error when an unsupported type is requested.

See: http://www.justinweiss.com/blog/2014/11/03/respond-to-without-all-the-pain/