From 64e4e9efdb54187596c34d2b877544faa292ea0a Mon Sep 17 00:00:00 2001 From: Ian White Date: Wed, 10 Sep 2008 05:19:33 +0100 Subject: [PATCH] Changed API in app response_for (outside actions) response (inside actions) --- spec/app.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/app.rb b/spec/app.rb index fe7d617..f3a5685 100644 --- a/spec/app.rb +++ b/spec/app.rb @@ -1,19 +1,19 @@ class FooController < ApplicationController def foo @foo = "Foo" - respond_to do |format| + response do |format| format.html {} end end # testing that erase_render_results works as expected def bar - respond_to(:json) + response :json erase_render_results end def baz - # no respond_to block in here, but we can still supplu one with response_for + # no response block in here, but we can still supply one with response_for end end