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!
Jordan McKible
2006-Jul-11 22:03 UTC
[Rails] Re: controller_path says undefined local ....
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. -- Posted via http://www.ruby-forum.com/.