- A
- B
- D
- G
- H
- L
- P
- R
-
- render_action_hello_world,
- render_action_hello_world_with_symbol,
- render_custom_code,
- render_hello_world,
- render_hello_world_from_variable,
- render_json_hello_world,
- render_json_hello_world_with_callback,
- render_nothing_with_appendix,
- render_symbol_json,
- render_text_appendix,
- render_text_hello_world,
- render_to_string_test,
- render_xml_hello,
- rescue_action
[RW] | delegate_attr |
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 107 def accessing_local_assigns_in_inline_template name = params[:local_name] render :inline => "<%= 'Goodbye, ' + local_name %>", :locals => { :local_name => name } end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 113 def accessing_local_assigns_in_inline_template_with_string_keys name = params[:local_name] ActionView::Base.local_assigns_support_string_keys = true render :inline => "<%= 'Goodbye, ' + local_name %>", :locals => { "local_name" => name } ActionView::Base.local_assigns_support_string_keys = false end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 103 def accessing_params_in_template render_template "Hello: <%= params[:name] %>" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 80 def builder_layout_test render_action "hello" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 84 def builder_partial_test render_action "hello_world_container" end
Source: show
# File rails/actionpack/test/controller/helper_test.rb, line 5 def delegate_method() end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 72 def greeting # let's just rely on the template end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 98 def hello_in_a_string @customers = [ Customer.new("david"), Customer.new("mary") ] render_text "How's there? #{render_to_string("test/list")}" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 18 def hello_world end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 76 def layout_test render_action "hello_world" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 94 def partial_only render_partial end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 88 def partials_list @test_unchanged = 'hello' @customers = [ Customer.new("david"), Customer.new("mary") ] render_action "list" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 30 def render_action_hello_world render_action "hello_world" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 34 def render_action_hello_world_with_symbol render_action :hello_world end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 54 def render_custom_code render_text "hello world", "404 Moved" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 21 def render_hello_world render "test/hello_world" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 25 def render_hello_world_from_variable @person = "david" render_text "hello #{@person}" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 42 def render_json_hello_world render_json({:hello => 'world'}.to_json) end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 46 def render_json_hello_world_with_callback render_json({:hello => 'world'}.to_json, 'alert') end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 63 def render_nothing_with_appendix render_text "appended", nil, true end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 50 def render_symbol_json render :json => {:hello => 'world'}.to_json end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 58 def render_text_appendix render_text "hello world" render_text ", goodbye!", "404 Not Found", true end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 38 def render_text_hello_world render_text "hello world" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 121 def render_to_string_test @foo = render_to_string :inline => "this is a test" end
Source: show
# File rails/actionpack/test/controller/render_test.rb, line 67 def render_xml_hello @name = "David" render "test/hello" end
Source: show
# File rails/actionpack/test/controller/helper_test.rb, line 6 def rescue_action(e) raise end