Methods
C
G
M
P
R
S
Instance Public methods
get()
# File actionpack/test/controller/integration_test.rb, line 402
def get
  respond_to do |format|
    format.html { render plain: "OK", status: 200 }
    format.js { render plain: "JS OK", status: 200 }
    format.xml { render :xml => "<root></root>", :status => 200 }
    format.rss { render :xml => "<root></root>", :status => 200 }
    format.atom { render :xml => "<root></root>", :status => 200 }
  end
end
get_with_params()
# File actionpack/test/controller/integration_test.rb, line 412
def get_with_params
  render plain: "foo: #{params[:foo]}", status: 200
end
method()
# File actionpack/test/controller/integration_test.rb, line 420
def method
  render plain: "method: #{request.method.downcase}"
end
post()
# File actionpack/test/controller/integration_test.rb, line 416
def post
  render plain: "Created", status: 201
end
redirect()
# File actionpack/test/controller/integration_test.rb, line 439
def redirect
  redirect_to action_url('get')
end
remove_header()
# File actionpack/test/controller/integration_test.rb, line 443
def remove_header
  response.headers.delete params[:header]
  head :ok, 'c' => '3'
end