Class: CalleeController

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

#being_calledObject



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

def being_called
  render :text => "#{params[:name] || "Lady"} of the House, speaking"
end

#blowing_upObject



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

def blowing_up
  render :text => "It's game over, man, just game over, man!", :status => 500
end

#redirectedObject



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

def redirected
  redirect_to :controller => "callee", :action => "being_called"
end

#rescue_action(e) ⇒ Object



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

def rescue_action(e) raise end

#set_flashObject



56
57
58
59
# File 'lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb', line 56

def set_flash
  flash[:notice] = 'My stoney baby'
  render :text => 'flash is set'
end

#use_flashObject



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

def use_flash
  render :text => flash[:notice] || 'no flash'
end