This project is archived and is in readonly mode.
Allow helpers directory to be overridden
Reported by Sam Pohlenz | November 20th, 2008 @ 10:22 PM | in 2.x
This patch allows the helpers directory for helper
:all
to be overridden.
It can be set using the helpers_dir
class accessor
on ActionController::Base
or its descendants or via
config.action_controller.helpers_dir =
'/path/to/helpers'
in the Rails initializer block.
The helpers directory must be in the load path.
Comments and changes to this ticket
-
DHH November 22nd, 2008 @ 06:02 PM
Not that I don't like the patch, but I'm curious as to the use case that prompted this?
-
Sam Pohlenz November 23rd, 2008 @ 12:42 AM
In my latest project (yes, its a CMS), I'm aiming to keep the root folder structure as clean as possible (i.e. only plugins/, themes/, public/, config/, cms/) and keep all code related to the cms core tucked away in its own folder.
I've done this to steer developers away from extending functionality directly inside the "app" folder and to instead build their functionality as plugins.
Rails has done very well so far to accommodate this (I've been pleasantly surprised actually) and this is the only pain point (and its a small one) I've come across so far.
-
Repository November 23rd, 2008 @ 12:42 PM
- State changed from new to committed
(from [bdf995bc5da016e99d1636e62b39c92384263a9c]) Allow helpers directory to be overridden via ActionController::Base.helpers_dir (Sam Pohlenz) [#1424 state:committed]
Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...
-
Repository November 23rd, 2008 @ 01:10 PM
(from [5ea9f2cac6e136e27d7fef2662412dda25391860]) Allow helpers directory to be overridden via ActionController::Base.helpers_dir (Sam Pohlenz) [#1424 state:committed]
Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...
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
Tags
Referenced by
- 1424 Allow helpers directory to be overridden (from [bdf995bc5da016e99d1636e62b39c92384263a9c]) Allow h...
- 1424 Allow helpers directory to be overridden (from [5ea9f2cac6e136e27d7fef2662412dda25391860]) Allow h...