method

controller_relative_to

Importance_0
v1.2.6 - Show latest stable - 0 notes - Class: ActionController::Routing
controller_relative_to(controller, previous) public

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_controller/routing.rb, line 310
      def controller_relative_to(controller, previous)
        if controller.nil?           then previous
        elsif controller[0] == ?/    then controller[1..-1]
        elsif %r{^(.*)/} =~ previous then "#{$1}/#{controller}"
        else controller
        end     
      end
Register or log in to add new notes.