This project is archived and is in readonly mode.

#1141 ✓resolved
David Masover

Allow per-request controller_path.

Reported by David Masover | September 30th, 2008 @ 04:32 AM | in 2.x

Don't let the description fool you -- it's a trivial, two-line patch.

This is about how ActionController::Base#controller_path is used.

From the commit summary:

The instance method calls the class method by default. With this change, controllers can override the instance method to set a dynamic controller_path for a given request.

Rationale:

It is possible to override the whole view_path (with prepend_view_path and append_view_path) for all requests, or for an individual request. It seems that the controller_path is a smaller change.

In fact, I believe that any argument against doing this would apply even moreso to modifying the view_path.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages