Class: CallerController

Inherits:
ActionController::Base show all
Defined in:
lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb,
lib/six-updater-web/vendor/plugins/active_scaffold/test/render_component/components_test.rb

Instance Method Summary collapse

Methods inherited from ActionController::Base

#active_scaffold_render_secure_download, #assign_names_with_active_scaffold, #render_with_active_scaffold, #search_generic_view_paths?

Instance Method Details

#calling_from_controllerObject



4
5
6
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 4

def calling_from_controller
  render_component(:controller => "callee", :action => "being_called")
end

#calling_from_controller_with_different_status_codeObject



12
13
14
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 12

def calling_from_controller_with_different_status_code
  render_component(:controller => "callee", :action => "blowing_up")
end

#calling_from_controller_with_paramsObject



8
9
10
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 8

def calling_from_controller_with_params
  render_component(:controller => "callee", :action => "being_called", :params => { "name" => "David" })
end

#calling_from_templateObject



16
17
18
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 16

def calling_from_template
  render :inline => "Ring, ring: <%= render_component(:controller => 'callee', :action => 'being_called') %>"
end

#calling_redirectedObject



36
37
38
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 36

def calling_redirected
  render_component(:controller => "callee", :action => "redirected")
end

#calling_redirected_as_stringObject



40
41
42
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 40

def calling_redirected_as_string
  render :inline => "<%= render_component(:controller => 'callee', :action => 'redirected') %>"
end

#internal_calleeObject



24
25
26
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 24

def internal_callee
  render :text => "Yes, ma'am"
end

#internal_callerObject



20
21
22
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 20

def internal_caller
  render :inline => "Are you there? <%= render_component(:action => 'internal_callee') %>"
end

#rescue_action(e) ⇒ Object



44
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 44

def rescue_action(e) raise end

#set_flashObject



28
29
30
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 28

def set_flash
  render_component(:controller => "callee", :action => "set_flash")
end

#use_flashObject



32
33
34
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 32

def use_flash
  render_component(:controller => "callee", :action => "use_flash")
end