diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2013-08-17 18:45:50 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2013-08-17 19:03:45 -0700 |
commit | f84c6201dd592f9ef0b5e8473951bf6ceec213e6 (patch) | |
tree | 509c4639d32ff57d59cc5de65d1b65295c1f845f /guides/source/contributing_to_ruby_on_rails.md | |
parent | 6776980b9648383c7a4c87d291d7dd8fdce5b2d8 (diff) | |
download | rails-f84c6201dd592f9ef0b5e8473951bf6ceec213e6.tar.gz rails-f84c6201dd592f9ef0b5e8473951bf6ceec213e6.tar.bz2 rails-f84c6201dd592f9ef0b5e8473951bf6ceec213e6.zip |
Fail informatively in #respond_with when no appropriate #api_behavior renderer is available.
Currently if a user calls #respond_with(csvable), but has not csv
renderer available, Responder will just run through the default render
behavior twice, raising ActionView::MissingTemplate both times.
This changes ActionController::Metal::Responder#api_behavior to check
in advance whether there is a renderer available, and raise
ActionController::MissingRenderer if not.
Diffstat (limited to 'guides/source/contributing_to_ruby_on_rails.md')
0 files changed, 0 insertions, 0 deletions