partial_path (ActionController::RecordIdentifier)

    # File lib/action_controller/record_identifier.rb, line 39
        def partial_path(record_or_class, controller_path = nil)
          klass = class_from_record_or_class(record_or_class)

          if controller_path && controller_path.include?("/")
            "#{File.dirname(controller_path)}/#{klass.name.tableize}/#{klass.name.demodulize.underscore}"
          else
            "#{klass.name.tableize}/#{klass.name.demodulize.underscore}"
          end
        end