method

controller_relative_to

rails latest stable - Class: ActionController::Routing

Method deprecated or moved

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

controller_relative_to(controller, previous)
public

Returns a controller path for a new controller based on a previous controller path. Handles 4 scenarios: