- A
- B
- C
- D
- E
- G
- H
- L
- P
- R
-
- render_action_hello_world,
- render_action_hello_world_as_symbol,
- render_and_redirect,
- render_content_type_from_body,
- render_custom_code,
- render_file_not_using_full_path,
- render_file_not_using_full_path_with_dot_in_path,
- render_file_not_using_full_path_with_relative_path,
- render_file_with_instance_variables,
- render_file_with_locals,
- render_hello_world,
- render_hello_world_from_variable,
- render_js_with_explicit_action_template,
- render_js_with_explicit_template,
- render_text_hello_world,
- render_text_hello_world_with_layout,
- render_text_with_assigns,
- render_to_string_and_render,
- render_to_string_with_assigns,
- render_to_string_with_caught_exception,
- render_to_string_with_exception,
- render_to_string_with_partial,
- render_with_explicit_template,
- render_xml_hello,
- rendering_nothing_on_layout,
- rendering_with_conflicting_local_vars,
- rendering_without_layout,
- rescue_action,
- rjs_helper_method
- U
- Y
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 21 def self.controller_name; "test"; end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 22 def self.controller_path; "test"; end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 191 def accessing_params_in_template render :inline => "Hello: <%= params[:name] %>" end
Source: show
# 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
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 116 def builder_layout_test render :action => "hello" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 279 def delete_with_js @project_id = 4 end
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 203 def double_render render :text => "hello" render :text => "world" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 146 def empty_partial_collection render :partial => "customer", :collection => [] end
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 92 def greeting # let's just rely on the template end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 253 def head_with_custom_header head :x_custom_header => "something" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 245 def head_with_integer_status head :status => params[:status].to_i end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 237 def head_with_location_header head :location => "/foo" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 257 def head_with_status_code_first head :forbidden, :x_custom_header => "something" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 249 def head_with_string_status head :status => params[:status] end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 241 def head_with_symbolic_status head :status => params[:status].intern end
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 24 def hello_world end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 229 def hello_world_from_rxml_using_action render :action => "hello_world.rxml" end
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 53 def hello_world_with_layout_false render :layout => false end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 108 def layout_overriding_layout render :action => "hello_world", :layout => "standard" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 96 def layout_test render :action => "hello_world" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 100 def layout_test_with_different_layout render :action => "hello_world", :layout => "standard" end
Source: show
# 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
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 126 def partial_only render :partial => true end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 130 def partial_only_with_layout render :partial => "partial_only", :layout => true end
Source: show
# 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
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 134 def partial_with_locals render :partial => "customer", :locals => { :customer => Customer.new("david") } end
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 36 def render_action_hello_world render :action => "hello_world" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 40 def render_action_hello_world_as_symbol render :action => :hello_world end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 213 def render_and_redirect render :text => "hello" redirect_to :action => "double_render" end
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 57 def render_custom_code render :text => "hello world", :status => "404 Moved" end
Source: show
# 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
Source: show
# 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
Source: show
# 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
Source: show
# 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
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 27 def render_hello_world render :template => "test/hello_world" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 31 def render_hello_world_from_variable @person = "david" render :text => "hello #{@person}" end
Source: show
# 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
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 44 def render_text_hello_world render :text => "hello world" end
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 313 def render_text_with_assigns @hello = "world" render :text => "foo" end
Source: show
# 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
Source: show
# 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
Source: show
# 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
Source: show
# 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
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 199 def render_with_explicit_template render "test/hello_world" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 87 def render_xml_hello @name = "David" render :template => "test/hello" end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 112 def rendering_nothing_on_layout render :nothing => true end
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 104 def rendering_without_layout render :action => "hello_world", :layout => false end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 327 def rescue_action(e) raise end
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 263 def rjs_helper_method(value) page.visual_effect :highlight, value end
Source: show
# 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
Source: show
# 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
Source: show
# File rails/actionpack/test/controller/new_render_test.rb, line 318 def yield_content_for render :action => "content_for", :layout => "yield" end