Flowdock
method

path_for_action

Importance_0
v3.0.5 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Resources
path_for_action(action, path) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1297
          def path_for_action(action, path)
            prefix = shallow_scoping? ?
              "#{@scope[:shallow_path]}/#{parent_resource.path}/:id" : @scope[:path]

            path = if canonical_action?(action, path.blank?)
              prefix.to_s
            else
              "#{prefix}/#{action_path(action, path)}"
            end
          end
Register or log in to add new notes.