Namespace
Methods
- A
- B
- C
-
- conditional_hello,
- conditional_hello_with_bangs,
- conditional_hello_with_expires_in,
- conditional_hello_with_expires_in_with_public,
- conditional_hello_with_expires_in_with_public_with_more_keys,
- conditional_hello_with_expires_in_with_public_with_more_keys_old_syntax,
- conditional_hello_with_expires_now,
- conditional_hello_with_public_header,
- conditional_hello_with_public_header_and_expires_at,
- conditional_hello_with_public_header_with_record,
- conditional_hello_with_record
- D
- E
- F
- G
- H
-
- handle_last_modified_and_etags,
- head_created,
- head_created_with_application_json_content_type,
- head_with_custom_header,
- head_with_integer_status,
- head_with_location_header,
- head_with_location_object,
- head_with_status_code_first,
- head_with_string_status,
- head_with_symbolic_status,
- head_with_www_authenticate_header,
- heading,
- hello_in_a_string,
- hello_world,
- hello_world_file,
- hello_world_from_rxml_using_action,
- hello_world_from_rxml_using_template,
- hello_world_with_layout_false
- L
- M
- P
-
- partial,
- partial_collection,
- partial_collection_shorthand_with_different_types_of_records,
- partial_collection_shorthand_with_different_types_of_records_with_counter,
- partial_collection_shorthand_with_locals,
- partial_collection_with_as,
- partial_collection_with_as_and_counter,
- partial_collection_with_counter,
- partial_collection_with_locals,
- partial_collection_with_spacer,
- partial_formats_html,
- partial_hash_collection,
- partial_hash_collection_with_locals,
- partial_html_erb,
- partial_only,
- partial_with_counter,
- partial_with_form_builder,
- partial_with_form_builder_subclass,
- partial_with_hash_object,
- partial_with_implicit_local_assignment,
- partial_with_locals,
- partial_with_nested_object,
- partial_with_nested_object_shorthand,
- partials_list
- R
-
- render_action_hello_world,
- render_action_hello_world_as_string,
- render_action_hello_world_as_symbol,
- render_action_hello_world_with_symbol,
- render_action_upcased_hello_world,
- render_and_redirect,
- render_call_to_partial_with_layout,
- render_call_to_partial_with_layout_in_main_layout_and_within_content_for_layout,
- render_content_type_from_body,
- render_custom_code,
- render_file_as_string_with_instance_variables,
- render_file_as_string_with_locals,
- render_file_from_template,
- render_file_not_using_full_path,
- render_file_not_using_full_path_with_dot_in_path,
- render_file_using_pathname,
- render_file_with_instance_variables,
- render_file_with_locals,
- render_hello_world,
- render_hello_world_from_variable,
- render_hello_world_with_forward_slash,
- render_hello_world_with_last_modified_set,
- render_implicit_html_template_from_xhr_request,
- render_implicit_js_template_without_layout,
- render_line_offset,
- render_nothing_with_appendix,
- render_template_in_top_directory,
- render_template_in_top_directory_with_slash,
- render_template_within_a_template_with_other_format,
- render_text_hello_world,
- render_text_hello_world_with_layout,
- render_text_with_assigns,
- render_text_with_false,
- render_text_with_nil,
- render_text_with_resource,
- render_to_string_and_render,
- render_to_string_and_render_with_different_formats,
- render_to_string_test,
- render_to_string_with_assigns,
- render_to_string_with_caught_exception,
- render_to_string_with_exception,
- render_to_string_with_inline_and_render,
- render_to_string_with_partial,
- render_to_string_with_template_and_html_partial,
- render_using_layout_around_block,
- render_using_layout_around_block_in_main_layout_and_within_content_for_layout,
- render_with_explicit_escaped_template,
- render_with_explicit_string_template,
- render_with_explicit_template,
- render_with_explicit_template_with_locals,
- render_with_explicit_unescaped_template,
- render_with_filters,
- render_xml_hello,
- render_xml_hello_as_string_template,
- rendering_nothing_on_layout,
- rendering_with_conflicting_local_vars,
- rendering_without_layout,
- rescue_action
- S
- Y
Instance Public methods
accessing_action_name_in_template()
Link
accessing_controller_name_in_template()
Link
accessing_local_assigns_in_inline_template()
Link
accessing_logger_in_template()
Link
accessing_params_in_template()
Link
accessing_params_in_template_with_layout()
Link
accessing_request_in_template()
Link
action_talk_to_layout()
Link
blank_response()
Link
:ported:
builder_layout_test()
Link
:ported:
builder_partial_test()
Link
:move: test this in Action View
conditional_hello()
Link
conditional_hello_with_bangs()
Link
conditional_hello_with_expires_in()
Link
conditional_hello_with_expires_in_with_public()
Link
conditional_hello_with_expires_in_with_public_with_more_keys()
Link
conditional_hello_with_expires_in_with_public_with_more_keys_old_syntax()
Link
conditional_hello_with_expires_now()
Link
conditional_hello_with_public_header()
Link
conditional_hello_with_public_header_and_expires_at()
Link
conditional_hello_with_public_header_with_record()
Link
# File actionpack/test/controller/render_test.rb, line 69 def conditional_hello_with_public_header_with_record record = Struct.new(:updated_at, :cache_key).new(Time.now.utc.beginning_of_day, "foo/123") if stale?(record, :public => true) render :action => 'hello_world' end end
conditional_hello_with_record()
Link
default_render()
Link
double_redirect()
Link
double_render()
Link
:ported:
empty_partial_collection()
Link
formatted_html_erb()
Link
formatted_xml_erb()
Link
greeting()
Link
head_created()
Link
head_created_with_application_json_content_type()
Link
head_with_custom_header()
Link
head_with_integer_status()
Link
head_with_location_header()
Link
head_with_location_object()
Link
head_with_status_code_first()
Link
head_with_string_status()
Link
head_with_symbolic_status()
Link
head_with_www_authenticate_header()
Link
heading()
Link
hello_in_a_string()
Link
hello_world()
Link
hello_world_file()
Link
hello_world_from_rxml_using_action()
Link
hello_world_from_rxml_using_template()
Link
:deprecated:
hello_world_with_layout_false()
Link
layout_overriding_layout()
Link
layout_test()
Link
:ported:
layout_test_with_different_layout()
Link
layout_test_with_different_layout_and_string_action()
Link
layout_test_with_different_layout_and_symbol_action()
Link
missing_partial()
Link
partial()
Link
partial_collection()
Link
partial_collection_shorthand_with_different_types_of_records()
Link
# File actionpack/test/controller/render_test.rb, line 625 def partial_collection_shorthand_with_different_types_of_records render :partial => [ BadCustomer.new("mark"), GoodCustomer.new("craig"), BadCustomer.new("john"), GoodCustomer.new("zach"), GoodCustomer.new("brandon"), BadCustomer.new("dan") ], :locals => { :greeting => "Bonjour" } end
partial_collection_shorthand_with_different_types_of_records_with_counter()
Link
partial_collection_shorthand_with_locals()
Link
partial_collection_with_as()
Link
partial_collection_with_as_and_counter()
Link
partial_collection_with_counter()
Link
partial_collection_with_locals()
Link
partial_collection_with_spacer()
Link
partial_formats_html()
Link
partial_hash_collection()
Link
partial_hash_collection_with_locals()
Link
partial_html_erb()
Link
partial_only()
Link
partial_with_counter()
Link
partial_with_form_builder()
Link
partial_with_form_builder_subclass()
Link
partial_with_hash_object()
Link
partial_with_implicit_local_assignment()
Link
partial_with_locals()
Link
partial_with_nested_object()
Link
partial_with_nested_object_shorthand()
Link
partials_list()
Link
:ported:
render_action_hello_world()
Link
:ported:
render_action_hello_world_as_string()
Link
render_action_hello_world_as_symbol()
Link
render_action_hello_world_with_symbol()
Link
render_action_upcased_hello_world()
Link
render_and_redirect()
Link
render_call_to_partial_with_layout()
Link
render_call_to_partial_with_layout_in_main_layout_and_within_content_for_layout()
Link
render_content_type_from_body()
Link
render_custom_code()
Link
:ported:
render_file_as_string_with_instance_variables()
Link
:ported:
render_file_as_string_with_locals()
Link
render_file_from_template()
Link
render_file_not_using_full_path()
Link
:ported:
render_file_not_using_full_path_with_dot_in_path()
Link
render_file_using_pathname()
Link
render_file_with_instance_variables()
Link
:ported:
render_file_with_locals()
Link
render_hello_world()
Link
:ported:
render_hello_world_from_variable()
Link
:ported:
render_hello_world_with_forward_slash()
Link
:ported: compatibility
render_hello_world_with_last_modified_set()
Link
render_implicit_html_template_from_xhr_request()
Link
render_implicit_js_template_without_layout()
Link
render_line_offset()
Link
render_nothing_with_appendix()
Link
:ported:
render_template_in_top_directory()
Link
:ported:
render_template_in_top_directory_with_slash()
Link
:deprecated:
render_template_within_a_template_with_other_format()
Link
render_text_hello_world()
Link
:ported:
render_text_hello_world_with_layout()
Link
:ported:
render_text_with_assigns()
Link
:addressed:
render_text_with_false()
Link
:ported:
render_text_with_nil()
Link
:ported:
render_text_with_resource()
Link
render_to_string_and_render()
Link
render_to_string_and_render_with_different_formats()
Link
render_to_string_test()
Link
render_to_string_with_assigns()
Link
render_to_string_with_caught_exception()
Link
# File actionpack/test/controller/render_test.rb, line 403 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!" rescue end @after = "i'm after the render" render :template => "test/hello_world" end
render_to_string_with_exception()
Link
render_to_string_with_inline_and_render()
Link
render_to_string_with_partial()
Link
# File actionpack/test/controller/render_test.rb, line 558 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 :template => "test/hello_world" end
render_to_string_with_template_and_html_partial()
Link
# File actionpack/test/controller/render_test.rb, line 564 def render_to_string_with_template_and_html_partial @text = render_to_string :template => "test/with_partial", :formats => [:text] @html = render_to_string :template => "test/with_partial", :formats => [:html] render :template => "test/with_html_partial" end
render_using_layout_around_block()
Link
render_using_layout_around_block_in_main_layout_and_within_content_for_layout()
Link
render_with_explicit_escaped_template()
Link
render_with_explicit_string_template()
Link
render_with_explicit_template()
Link
:ported:
render_with_explicit_template_with_locals()
Link
:ported:
render_with_explicit_unescaped_template()
Link
render_with_filters()
Link
Ensure that the before filter is executed before self.formats is set.
render_xml_hello()
Link
This test is testing 3 things:
render :file in AV :ported:
render :template in AC :ported:
setting content type
render_xml_hello_as_string_template()
Link
rendering_nothing_on_layout()
Link
rendering_with_conflicting_local_vars()
Link
rendering_without_layout()
Link
rescue_action(e)
Link
send_mail()
Link