Skip to Content Skip to Search

Action Controller

Action Controller is a module of Action Pack.

Action Controller provides a base controller class that can be subclassed to implement filters and actions to handle requests. The result of an action is typically content generated from views.

Namespace
Methods
A
R

Class Public methods

add_renderer(key, &block)

# File actionpack/lib/action_controller/metal/renderers.rb, line 9
def self.add_renderer(key, &block)
  Renderers.add(key, &block)
end

remove_renderer(key)

# File actionpack/lib/action_controller/metal/renderers.rb, line 14
def self.remove_renderer(key)
  Renderers.remove(key)
end