controller.rb
# store action, returns nil if no block is given
# or if an invalid action type is given
store action, returns nil if no block is given
or if an invalid action type is given
store action returns nil if no block is given or if an invalid action type is given
def store_action(type, route, params={})
    action = @requests[ type.downcase.to_sym ]
    return nil unless block_given? || action
    action[route] = Proc.new
  end
def store_action ( type , route , params = { } ) action = @requests [ type . downcase . to_sym ] return nil unless block_given? || action action [ route ] = Proc . new end
store action, returns nil if no block is given
or if an invalid action type is given
store action returns nil if no block is given or if an invalid action type is given
type
<not_specific>
route
<not_specific>
params
<not_specific>