Methods
R
U
Instance Public methods
respond()
# File actionpack/test/controller/mime_responds_test.rb, line 567
def respond; @controller.render :text => "respond #{format}"; end
using_hash_resource()
# File actionpack/test/controller/mime_responds_test.rb, line 517
def using_hash_resource
  respond_with({:result => resource})
end
using_invalid_resource_with_template()
# File actionpack/test/controller/mime_responds_test.rb, line 545
def using_invalid_resource_with_template
  respond_with(resource)
end
using_options_with_template()
# File actionpack/test/controller/mime_responds_test.rb, line 549
def using_options_with_template
  @customer = resource
  respond_with(@customer, :status => 123, :location => "http://test.host/")
end
using_resource()
# File actionpack/test/controller/mime_responds_test.rb, line 513
def using_resource
  respond_with(resource)
end
using_resource_with_action()
# File actionpack/test/controller/mime_responds_test.rb, line 559
def using_resource_with_action
  respond_with(resource, :action => :foo) do |format|
    format.html { raise ActionView::MissingTemplate.new([], "bar", ["foo"], {}, false) }
  end
end
using_resource_with_block()
# File actionpack/test/controller/mime_responds_test.rb, line 521
def using_resource_with_block
  respond_with(resource) do |format|
    format.csv { render :text => "CSV" }
  end
end
using_resource_with_collection()
# File actionpack/test/controller/mime_responds_test.rb, line 533
def using_resource_with_collection
  respond_with([resource, Customer.new("jamis", 9)])
end
using_resource_with_overwrite_block()
# File actionpack/test/controller/mime_responds_test.rb, line 527
def using_resource_with_overwrite_block
  respond_with(resource) do |format|
    format.html { render :text => "HTML" }
  end
end
using_resource_with_parent()
# File actionpack/test/controller/mime_responds_test.rb, line 537
def using_resource_with_parent
  respond_with(Quiz::Store.new("developer?", 11), Customer.new("david", 13))
end
using_resource_with_responder()
# File actionpack/test/controller/mime_responds_test.rb, line 554
def using_resource_with_responder
  responder = proc { |c, r, o| c.render :text => "Resource name is #{r.first.name}" }
  respond_with(resource, :responder => responder)
end
using_resource_with_status_and_location()
# File actionpack/test/controller/mime_responds_test.rb, line 541
def using_resource_with_status_and_location
  respond_with(resource, :location => "http://test.host/", :status => :created)
end
using_responder_with_respond()
# File actionpack/test/controller/mime_responds_test.rb, line 565
def using_responder_with_respond
  responder = Class.new(ActionController::Responder) do
    def respond; @controller.render :text => "respond #{format}"; end
  end
  respond_with(resource, :responder => responder)
end
Instance Protected methods
resource()
# File actionpack/test/controller/mime_responds_test.rb, line 574
def resource
  Customer.new("david", request.delete? ? nil : 13)
end