# Getting the absolute path of the controller

**URL:** <https://www.ruby-forum.com/t/getting-the-absolute-path-of-the-controller/106345>\
**Category:** Rails\
**Created:** [June 8, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/getting-the-absolute-path-of-the-controller/106345 "2007-06-08T20:20:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@hhop](https://www.ruby-forum.com/u/hhop)\
**Post date:** [June 8, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/getting-the-absolute-path-of-the-controller/106345/1 "2007-06-08T20:20:59Z")

</div>

Does anyone know how I can determine the absolute path of a  
controller? I’m using the controller’s absolute path as a key for my  
site’s security, but I’m coming across an issue where the  
form\_remote\_tag method is putting in the relative path of the  
controller, not the absolute path. It’s a case where I can’t  
explicitly pass in the controller path myself.

---

<div class="post-metadata">

**Author:** ![hhop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@hhop](https://www.ruby-forum.com/u/hhop)\
**Post date:** [June 8, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/getting-the-absolute-path-of-the-controller/106345/2 "2007-06-08T21:06:05Z")

</div>

What do you mean by “absolute path”? File system path? full URL path?

Jason
