aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/responder.rb
Commit message (Collapse)AuthorAgeFilesLines
* Multiple changes to 1,9 hash syntaxAvnerCohen2012-10-271-10/+10
|
* Fix example code: use tasks instead of commentsErik Behrends2012-09-021-1/+1
|
* Fix code comment to reflect its intent.Selem Delul2012-07-111-1/+1
|
* Fix AC responder exampleAlexey Vakhov2012-04-041-1/+1
|
* Always passing a respond block from to responderPrem Sichanugrist2012-03-051-2/+11
| | | | | | | We should let the responder to decide what to do with the given overridden response block, and not short circuit it. Fixes #5280
* Add config.default_method_for_update to support PATCHDavid Lee2012-02-221-6/+7
| | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* search private / protected methods in trunk rubyAaron Patterson2012-02-201-1/+1
|
* Clean up a bit default_response handling and cache format negotiation.José Valim2012-02-041-2/+1
|
* Merge pull request #3613 from mitio/fix-actionpack-responder-docsXavier Noria2011-11-111-4/+4
|\ | | | | Fix wording and minor typos in the Responder RDoc
| * Fix wording and minor typos in the Responder RDocDimitar Dimitrov2011-11-111-4/+4
| |
* | Responders now return 204 No Content for API requests without a response ↵José Valim2011-10-261-21/+1
|/ | | | body (as in the new scaffold)
* JSON responder should return errors with :error rootDenis Odorcic2011-10-101-1/+9
|
* find(:all) => allAkira Matsuda2011-07-081-1/+1
|
* Make sure respond_with with :js tries to render a template in all casesJosé Valim2011-06-301-0/+5
|
* Update respond_with docs to deal better with collections.José Valim2011-05-051-1/+6
|
* Improve docs.José Valim2011-03-311-0/+31
|
* pass respond_with options to controller render when using a template for api ↵Josh Kalderimis2011-03-311-1/+1
| | | | | | navigation Signed-off-by: José Valim <jose.valim@gmail.com>
* only try to display an api template in responders if the request is a get or ↵Josh Kalderimis2011-03-311-4/+9
| | | | | | there are no errors Signed-off-by: José Valim <jose.valim@gmail.com>
* when using respond_with with an invalid resource and custom options, the ↵Josh Kalderimis2011-03-311-1/+2
| | | | | | default response status and error messages should be returned Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove misleading reference to polymorphic_url.José Valim2011-02-111-2/+0
|
* No need to symbolize these.José Valim2010-12-271-2/+2
|
* Return a valid empty JSON on successful PUT and DELETE requests. [#5199 ↵Szymon Nowak2010-10-121-0/+20
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* escape constant namesJoost Baaij2010-08-261-5/+5
|
* Use attribute readers as they are faster in general.José Valim2010-08-191-8/+2
|
* Small changes to responder:José Valim2010-06-261-5/+13
| | | | | | * resources is always an array; * Lazy retrieve request and formats; * Alias api_location and navigation_location to resource_location, making easier to change its behavior without affecting each other and without a need to reimplement any of the behavior methods.
* Fix a bug where responders were not working properly on method override.José Valim2010-05-241-1/+1
|
* Move the error raising to api_behavior.José Valim2010-04-071-1/+2
|
* * Change the object used in routing constraints to be an instance ofwycats2010-04-031-1/+1
| | | | | | | | | | | ActionDispatch::Request rather than Rack::Request. * Changed ActionDispatch::Request#method to return a String, to be compatible with the Rack::Request superclass. * Changed ActionDispatch::Request#method to return the original method in the case of methodoverride and #request_method not to, to be compatible with Rack::Request
* Ensure json is loaded before using responders.José Valim2010-03-171-0/+2
|
* Merge docrailsPratik Naik2010-01-171-17/+17
|
* Responder redirects to resource if destroy fails.José Valim2009-12-071-2/+7
| | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Allow ActionController::Responder to have a common entry point for all formats.José Valim2009-12-011-3/+8
| | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Split mime responder into smaller chunks and allow action to be configured.José Valim2009-11-131-17/+27
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Only undef to_json if it's definedJeremy Kemper2009-10-191-1/+1
|
* Ensure that blocks are also handled inside the responder.José Valim2009-08-291-5/+20
|
* Attempt to render the template inside the responder, so it can be used for ↵José Valim2009-08-291-5/+9
| | | | | | caching and pagination. Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Ensure collections are not treated as nested resources.José Valim2009-08-131-5/+5
|
* Renamed ActionController::Renderer to ActionController::Responder and ↵José Valim2009-08-081-0/+181
ActionController::MimeResponds::Responder to ActionController::MimeResponds::Collector.