method

path_for_action

rails latest stable - Class: ActionDispatch::Routing::Mapper::Resources

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

path_for_action(action, path)
protected

No documentation available.

# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1579
          def path_for_action(action, path) #:nodoc:
            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