Skip to content

Commit

Permalink
Changed API in app
Browse files Browse the repository at this point in the history
response_for (outside actions)
response (inside actions)
  • Loading branch information
ianwhite committed Sep 10, 2008
1 parent 0aeceda commit 64e4e9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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

Expand Down

0 comments on commit 64e4e9e

Please sign in to comment.