Forum: Ruby on Rails controller_path says undefined local ....

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Gerard P. (Guest)
on 2006-01-14 10:36
(Received via mailing list)
undefined local variable or method `controller_path'

Do I need to install anything explicit?

For the nosies, I'm looking for (building) a breadcrumb routine (as page
independant/DRY-less as possible). Like "mods > crm > customer > add



"Who cares if it doesn't do anything?  It was made with our new
Triple-Iso-Bifurcated-Krypton-Gate-MOS process ..."

My $Grtz =~ Gerard;
Jordan M. (Guest)
on 2006-07-11 21:52
I just ran into this problem.  Has anyone else gotten this as well?  Did
you find a solution?

I'm implementing the authorization recipe from Fowler's Rails Recipes.
Since I have modules, I need to use controller_path instead of
controller_name in my rights.

I see the source for controller_path in Base.rb, so I'm confused why it
can't be found.  Perhaps I'll just stick .gsub(/Controller$/,
'').underscore on the name.
This topic is locked and can not be replied to.