# Project root path helper?

**URL:** <https://www.ruby-forum.com/t/project-root-path-helper/101158>\
**Category:** Rails\
**Created:** [August 3, 2006, 2:23pm UTC](https://www.ruby-forum.com/t/project-root-path-helper/101158 "2006-08-03T14:23:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srogers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@srogers](https://www.ruby-forum.com/u/srogers)\
**Post date:** [August 3, 2006, 2:23pm UTC](https://www.ruby-forum.com/t/project-root-path-helper/101158/1 "2006-08-03T14:23:21Z")

</div>

Google isn’t helping me out on this one, so I have to ask: is there  
a convenient way to get the current project root in a template. I  
have a template with an OBJECT tag and an embedded QT movie that  
needs the full path to an asset. Basically, its the same motivation  
as link\_to, but I just need root path by itself without the link tags  
around it so I can use it in PARAM tags within the OBJECT tag.

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![srogers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@srogers](https://www.ruby-forum.com/u/srogers)\
**Post date:** [August 3, 2006, 2:23pm UTC](https://www.ruby-forum.com/t/project-root-path-helper/101158/2 "2006-08-03T14:23:23Z")

</div>

> Google isn’t helping me out on this one, so I have to ask: is there a  
> convenient way to get the current project root in a template. I have a  
> template with an OBJECT tag and an embedded QT movie that needs the full path  
> to an asset. Basically, its the same motivation as link\_to, but I just need  
> root path by itself without the link tags around it so I can use it in PARAM  
> tags within the OBJECT tag.

RAILS\_ROOT?

maybe with params[:controller] and params[:action] or something?
