Methods
C
D
N
R
S
T
Instance Public methods
create()
# File actionpack/test/controller/test_test.rb, line 116
def create
  head :created, :location => 'created resource'
end
no_op()
# File actionpack/test/controller/test_test.rb, line 7
def no_op
  render :text => 'dummy'
end
redirect_to_different_controller()
# File actionpack/test/controller/test_test.rb, line 112
def redirect_to_different_controller
  redirect_to :controller => 'fail', :id => 5
end
redirect_to_same_controller()
# File actionpack/test/controller/test_test.rb, line 108
def redirect_to_same_controller
  redirect_to :controller => 'test', :action => 'test_uri', :id => 5
end
render_body()
# File actionpack/test/controller/test_test.rb, line 37
def render_body
  render :text => request.body.read
end
render_raw_post()
# File actionpack/test/controller/test_test.rb, line 32
def render_raw_post
  raise ActiveSupport::TestCase::Assertion, "#raw_post is blank" if request.raw_post.blank?
  render :text => request.raw_post
end
reset_the_session()
# File actionpack/test/controller/test_test.rb, line 27
def reset_the_session
  reset_session
  render :text => 'ignore me'
end
set_flash()
# File actionpack/test/controller/test_test.rb, line 11
def set_flash
  flash["test"] = ">#{flash["test"]}<"
  render :text => 'ignore me'
end
set_flash_now()
# File actionpack/test/controller/test_test.rb, line 16
def set_flash_now
  flash.now["test_now"] = ">#{flash["test_now"]}<"
  render :text => 'ignore me'
end
set_session()
# File actionpack/test/controller/test_test.rb, line 21
def set_session
  session['string'] = 'A wonder'
  session[:symbol] = 'it works'
  render :text => 'Success'
end
test_assigns()
# File actionpack/test/controller/test_test.rb, line 125
def test_assigns
  @foo = "foo"
  render :nothing => true
end
test_file_upload()
# File actionpack/test/controller/test_test.rb, line 100
def test_file_upload
  render :text => params[:file].size
end
test_format()
# File actionpack/test/controller/test_test.rb, line 49
def test_format
  render :text => request.format
end
test_html_output()
# File actionpack/test/controller/test_test.rb, line 61
    def test_html_output
      render :text => <<HTML
<html>
  <body>
    <a href="/"><img src="/images/button.png" /></a>
    <div id="foo">
      <ul>
        <li class="item">hello</li>
        <li class="item">goodbye</li>
      </ul>
    </div>
    <div id="bar">
      <form action="/somewhere">
        Name: <input type="text" name="person[name]" id="person_name" />
      </form>
    </div>
  </body>
</html>
HTML
    end
test_only_one_param()
# File actionpack/test/controller/test_test.rb, line 92
def test_only_one_param
  render :text => (params[:left] && params[:right]) ? "EEP, Both here!" : "OK"
end
test_params()
# File actionpack/test/controller/test_test.rb, line 41
def test_params
  render :text => params.inspect
end
test_protocol()
# File actionpack/test/controller/test_test.rb, line 57
def test_protocol
  render :text => request.protocol
end
test_query_string()
# File actionpack/test/controller/test_test.rb, line 53
def test_query_string
  render :text => request.query_string
end
test_remote_addr()
# File actionpack/test/controller/test_test.rb, line 96
def test_remote_addr
  render :text => (request.remote_addr || "not specified")
end
test_send_file()
# File actionpack/test/controller/test_test.rb, line 104
def test_send_file
  send_file(File.expand_path(__FILE__))
end
test_uri()
# File actionpack/test/controller/test_test.rb, line 45
def test_uri
  render :text => request.fullpath
end
test_xml_output()
# File actionpack/test/controller/test_test.rb, line 82
    def test_xml_output
      response.content_type = "application/xml"
      render :text => <<XML
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <area>area is an empty tag in HTML, raising an error if not in xml mode</area>
</root>
XML
    end