vendor/bundle/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb
# CANONICAL_ACTIONS holds all actions that does not need a prefix or
# a path appended since they fit properly in their scope level.
CANONICAL_ACTIONS holds all actions that does not need a prefix or
a path appended since they fit properly in their scope level.
CANONICAL_ACTIONS holds all actions that does not need a prefix or a path appended since they fit properly in their scope level .
def path_for_action(action, path) 
            prefix = shallow_scoping? ?
              "#{@scope[:shallow_path]}/#{parent_resource.shallow_scope}" : @scope[:path]
            if canonical_action?(action, path.blank?)
              prefix.to_s
            else
              "#{prefix}/#{action_path(action, path)}"
            end
          end
def path_for_action ( action , path ) prefix = shallow_scoping? ? "#{@scope[:shallow_path]}/#{parent_resource.shallow_scope}" : @scope [ :path ] if canonical_action? ( action , path . blank? ) prefix . to_s else "#{prefix}/#{action_path(action, path)}" end end
CANONICAL_ACTIONS holds all actions that does not need a prefix or
a path appended since they fit properly in their scope level.
CANONICAL_ACTIONS holds all actions that does not need a prefix or a path appended since they fit properly in their scope level .
#:nodoc:
action
<not_specific>
path
<not_specific>