Methods
A
B
C
D
E
G
H
L
P
R
U
Y
Class Public methods
controller_name()
# File rails/actionpack/test/controller/new_render_test.rb, line 21
def self.controller_name; "test"; end
controller_path()
# File rails/actionpack/test/controller/new_render_test.rb, line 22
def self.controller_path; "test"; end
Instance Public methods
accessing_params_in_template()
# File rails/actionpack/test/controller/new_render_test.rb, line 191
def accessing_params_in_template
  render :inline =>  "Hello: <%= params[:name] %>"
end
accessing_params_in_template_with_layout()
# File rails/actionpack/test/controller/new_render_test.rb, line 195
def accessing_params_in_template_with_layout
  render :layout => nil, :inline =>  "Hello: <%= params[:name] %>"
end
action_talk_to_layout()
# File rails/actionpack/test/controller/new_render_test.rb, line 309
def action_talk_to_layout
  # Action template sets variable that's picked up by layout
end
builder_layout_test()
# File rails/actionpack/test/controller/new_render_test.rb, line 116
def builder_layout_test
  render :action => "hello"
end
delete_with_js()
# File rails/actionpack/test/controller/new_render_test.rb, line 279
def delete_with_js
  @project_id = 4
end
double_redirect()
# File rails/actionpack/test/controller/new_render_test.rb, line 208
def double_redirect
  redirect_to :action => "double_render"
  redirect_to :action => "double_render"
end
double_render()
# File rails/actionpack/test/controller/new_render_test.rb, line 203
def double_render
  render :text => "hello"
  render :text => "world"
end
empty_partial_collection()
# File rails/actionpack/test/controller/new_render_test.rb, line 146
def empty_partial_collection
  render :partial => "customer", :collection => []
end
enum_rjs_test()
# File rails/actionpack/test/controller/new_render_test.rb, line 268
def enum_rjs_test
  render :update do |page|
    page.select('.product').each do |value|
      page.rjs_helper_method_from_module
      page.rjs_helper_method(value)
      page.sortable(value, :url => { :action => "order" })
      page.draggable(value)
    end
  end
end
greeting()
# File rails/actionpack/test/controller/new_render_test.rb, line 92
def greeting
  # let's just rely on the template
end
head_with_custom_header()
# File rails/actionpack/test/controller/new_render_test.rb, line 253
def head_with_custom_header
  head :x_custom_header => "something"
end
head_with_integer_status()
# File rails/actionpack/test/controller/new_render_test.rb, line 245
def head_with_integer_status
  head :status => params[:status].to_i
end
head_with_location_header()
# File rails/actionpack/test/controller/new_render_test.rb, line 237
def head_with_location_header
  head :location => "/foo"
end
head_with_status_code_first()
# File rails/actionpack/test/controller/new_render_test.rb, line 257
def head_with_status_code_first
  head :forbidden, :x_custom_header => "something"
end
head_with_string_status()
# File rails/actionpack/test/controller/new_render_test.rb, line 249
def head_with_string_status
  head :status => params[:status]
end
head_with_symbolic_status()
# File rails/actionpack/test/controller/new_render_test.rb, line 241
def head_with_symbolic_status
  head :status => params[:status].intern
end
hello_in_a_string()
# File rails/actionpack/test/controller/new_render_test.rb, line 159
def hello_in_a_string
  @customers = [ Customer.new("david"), Customer.new("mary") ]
  render :text =>  "How's there? #{render_to_string("test/list")}"
end
hello_world()
# File rails/actionpack/test/controller/new_render_test.rb, line 24
def hello_world
end
hello_world_from_rxml_using_action()
# File rails/actionpack/test/controller/new_render_test.rb, line 229
def hello_world_from_rxml_using_action
  render :action => "hello_world.rxml"
end
hello_world_from_rxml_using_template()
# File rails/actionpack/test/controller/new_render_test.rb, line 233
def hello_world_from_rxml_using_template
  render :template => "test/hello_world.rxml"
end
hello_world_with_layout_false()
# File rails/actionpack/test/controller/new_render_test.rb, line 53
def hello_world_with_layout_false
  render :layout => false
end
layout_overriding_layout()
# File rails/actionpack/test/controller/new_render_test.rb, line 108
def layout_overriding_layout
  render :action => "hello_world", :layout => "standard"
end
layout_test()
# File rails/actionpack/test/controller/new_render_test.rb, line 96
def layout_test
  render :action => "hello_world"
end
layout_test_with_different_layout()
# File rails/actionpack/test/controller/new_render_test.rb, line 100
def layout_test_with_different_layout
  render :action => "hello_world", :layout => "standard"
end
partial_collection()
# File rails/actionpack/test/controller/new_render_test.rb, line 138
def partial_collection
  render :partial => "customer", :collection => [ Customer.new("david"), Customer.new("mary") ]
end
partial_collection_with_locals()
# File rails/actionpack/test/controller/new_render_test.rb, line 142
def partial_collection_with_locals
  render :partial => "customer_greeting", :collection => [ Customer.new("david"), Customer.new("mary") ], :locals => { :greeting => "Bonjour" }
end
partial_only()
# File rails/actionpack/test/controller/new_render_test.rb, line 126
def partial_only
  render :partial => true
end
partial_only_with_layout()
# File rails/actionpack/test/controller/new_render_test.rb, line 130
def partial_only_with_layout
  render :partial => "partial_only", :layout => true
end
partial_with_hash_object()
# File rails/actionpack/test/controller/new_render_test.rb, line 150
def partial_with_hash_object
  render :partial => "hash_object", :object => {:first_name => "Sam"}
end
partial_with_implicit_local_assignment()
# File rails/actionpack/test/controller/new_render_test.rb, line 154
def partial_with_implicit_local_assignment
  @customer = Customer.new("Marcel")
  render :partial => "customer"
end
partial_with_locals()
# File rails/actionpack/test/controller/new_render_test.rb, line 134
def partial_with_locals
  render :partial => "customer", :locals => { :customer => Customer.new("david") } 
end
partials_list()
# File rails/actionpack/test/controller/new_render_test.rb, line 120
def partials_list
  @test_unchanged = 'hello'
  @customers = [ Customer.new("david"), Customer.new("mary") ]
  render :action => "list"
end
render_action_hello_world()
# File rails/actionpack/test/controller/new_render_test.rb, line 36
def render_action_hello_world
  render :action => "hello_world"
end
render_action_hello_world_as_symbol()
# File rails/actionpack/test/controller/new_render_test.rb, line 40
def render_action_hello_world_as_symbol
  render :action => :hello_world
end
render_and_redirect()
# File rails/actionpack/test/controller/new_render_test.rb, line 213
def render_and_redirect
  render :text => "hello"
  redirect_to :action => "double_render"
end
render_content_type_from_body()
# File rails/actionpack/test/controller/new_render_test.rb, line 322
def render_content_type_from_body
  response.content_type = Mime::RSS
  render :text => "hello world!"
end
render_custom_code()
# File rails/actionpack/test/controller/new_render_test.rb, line 57
def render_custom_code
  render :text => "hello world", :status => "404 Moved"
end
render_file_not_using_full_path()
# File rails/actionpack/test/controller/new_render_test.rb, line 72
def render_file_not_using_full_path
  @secret = 'in the sauce'
  render :file => 'test/render_file_with_ivar', :use_full_path => true
end
render_file_not_using_full_path_with_dot_in_path()
# File rails/actionpack/test/controller/new_render_test.rb, line 82
def render_file_not_using_full_path_with_dot_in_path
  @secret = 'in the sauce'
  render :file => 'test/dot.directory/render_file_with_ivar', :use_full_path => true
end
render_file_not_using_full_path_with_relative_path()
# File rails/actionpack/test/controller/new_render_test.rb, line 77
def render_file_not_using_full_path_with_relative_path
  @secret = 'in the sauce'
  render :file => 'test/../test/render_file_with_ivar', :use_full_path => true
end
render_file_with_instance_variables()
# File rails/actionpack/test/controller/new_render_test.rb, line 61
def render_file_with_instance_variables
  @secret = 'in the sauce'
  path = File.join(File.dirname(__FILE__), '../fixtures/test/render_file_with_ivar.rhtml')
  render :file => path
end
render_file_with_locals()
# File rails/actionpack/test/controller/new_render_test.rb, line 67
def render_file_with_locals
  path = File.join(File.dirname(__FILE__), '../fixtures/test/render_file_with_locals.rhtml')
  render :file => path, :locals => {:secret => 'in the sauce'} 
end
render_hello_world()
# File rails/actionpack/test/controller/new_render_test.rb, line 27
def render_hello_world
  render :template => "test/hello_world"
end
render_hello_world_from_variable()
# File rails/actionpack/test/controller/new_render_test.rb, line 31
def render_hello_world_from_variable
  @person = "david"
  render :text => "hello #{@person}"
end
render_js_with_explicit_action_template()
# File rails/actionpack/test/controller/new_render_test.rb, line 288
def render_js_with_explicit_action_template
  @project_id = 4
  render :action => 'delete_with_js'
end
render_js_with_explicit_template()
# File rails/actionpack/test/controller/new_render_test.rb, line 283
def render_js_with_explicit_template
  @project_id = 4
  render :template => 'test/delete_with_js'
end
render_text_hello_world()
# File rails/actionpack/test/controller/new_render_test.rb, line 44
def render_text_hello_world
  render :text => "hello world"
end
render_text_hello_world_with_layout()
# File rails/actionpack/test/controller/new_render_test.rb, line 48
def render_text_hello_world_with_layout
  @variable_for_layout = ", I'm here!"
  render :text => "hello world", :layout => true
end
render_text_with_assigns()
# File rails/actionpack/test/controller/new_render_test.rb, line 313
def render_text_with_assigns
  @hello = "world"
  render :text => "foo"
end
render_to_string_and_render()
# File rails/actionpack/test/controller/new_render_test.rb, line 218
def render_to_string_and_render
  @stuff = render_to_string :text => "here is some cached stuff"
  render :text => "Hi web users! #{@stuff}"
end
render_to_string_with_assigns()
# File rails/actionpack/test/controller/new_render_test.rb, line 164
def render_to_string_with_assigns
  @before = "i'm before the render"
  render_to_string :text => "foo"
  @after = "i'm after the render"
  render :action => "test/hello_world"
end
render_to_string_with_caught_exception()
# File rails/actionpack/test/controller/new_render_test.rb, line 181
def render_to_string_with_caught_exception
  @before = "i'm before the render"
  begin
    render_to_string :file => "exception that will be caught- hope my future instance vars still work!", :use_full_path => true
  rescue
  end
  @after = "i'm after the render"
  render :action => "test/hello_world"
end
render_to_string_with_exception()
# File rails/actionpack/test/controller/new_render_test.rb, line 177
def render_to_string_with_exception
  render_to_string :file => "exception that will not be caught - this will certainly not work", :use_full_path => true
end
render_to_string_with_partial()
# File rails/actionpack/test/controller/new_render_test.rb, line 171
def render_to_string_with_partial
   @partial_only = render_to_string :partial => "partial_only"
   @partial_with_locals = render_to_string :partial => "customer", :locals => { :customer => Customer.new("david") }     
   render :action => "test/hello_world"  
 end
render_with_explicit_template()
# File rails/actionpack/test/controller/new_render_test.rb, line 199
def render_with_explicit_template
  render "test/hello_world"
end
render_xml_hello()
# File rails/actionpack/test/controller/new_render_test.rb, line 87
def render_xml_hello
  @name = "David"
  render :template => "test/hello"
end
rendering_nothing_on_layout()
# File rails/actionpack/test/controller/new_render_test.rb, line 112
def rendering_nothing_on_layout
  render :nothing => true
end
rendering_with_conflicting_local_vars()
# File rails/actionpack/test/controller/new_render_test.rb, line 223
def rendering_with_conflicting_local_vars
  @name = "David"
  def @template.name() nil end
  render :action => "potential_conflicts"
end
rendering_without_layout()
# File rails/actionpack/test/controller/new_render_test.rb, line 104
def rendering_without_layout
  render :action => "hello_world", :layout => false
end
rescue_action(e)
# File rails/actionpack/test/controller/new_render_test.rb, line 327
def rescue_action(e) raise end
rjs_helper_method(value)
# File rails/actionpack/test/controller/new_render_test.rb, line 263
def rjs_helper_method(value)
  page.visual_effect :highlight, value
end
update_page()
# File rails/actionpack/test/controller/new_render_test.rb, line 293
def update_page
  render :update do |page|
    page.replace_html 'balance', '$37,000,000.00'
    page.visual_effect :highlight, 'balance'
  end
end
update_page_with_instance_variables()
# File rails/actionpack/test/controller/new_render_test.rb, line 300
def update_page_with_instance_variables
  @money = '$37,000,000.00'
  @div_id = 'balance'
  render :update do |page|
    page.replace_html @div_id, @money
    page.visual_effect :highlight, @div_id
  end
end
yield_content_for()
# File rails/actionpack/test/controller/new_render_test.rb, line 318
def yield_content_for
  render :action => "content_for", :layout => "yield"
end