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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4710a8ada2adc162aaee4288d9879d8e?d=identicon&s=25 Gerard Petersen (Guest)
on 2006-01-14 09: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
contact"

Regards,

Gerard

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

My $Grtz =~ Gerard;
~
:wq!
5ac4033486edab2e9059ca1ccf13c8fa?d=identicon&s=25 Jordan McKible (jmckible)
on 2006-07-11 19: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.