# Controller\_path says undefined local

**URL:** <https://www.ruby-forum.com/t/controller-path-says-undefined-local/52448>\
**Category:** Rails\
**Created:** [January 14, 2006, 9:36am UTC](https://www.ruby-forum.com/t/controller-path-says-undefined-local/52448 "2006-01-14T09:36:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerardjp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9fc348/32.png) [@gerardjp](https://www.ruby-forum.com/u/gerardjp)\
**Post date:** [January 14, 2006, 9:36am UTC](https://www.ruby-forum.com/t/controller-path-says-undefined-local/52448/1 "2006-01-14T09:36:55Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![gerardjp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9fc348/32.png) [@gerardjp](https://www.ruby-forum.com/u/gerardjp)\
**Post date:** [July 11, 2006, 7:52pm UTC](https://www.ruby-forum.com/t/controller-path-says-undefined-local/52448/2 "2006-07-11T19:52:38Z")

</div>

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.
