# How can I run rails at a URI containing a folder path?

**URL:** <https://www.ruby-forum.com/t/how-can-i-run-rails-at-a-uri-containing-a-folder-path/122909>\
**Category:** Rails\
**Created:** [December 12, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/how-can-i-run-rails-at-a-uri-containing-a-folder-path/122909 "2007-12-12T20:53:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Post date:** [December 12, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/how-can-i-run-rails-at-a-uri-containing-a-folder-path/122909/1 "2007-12-12T20:53:32Z")

</div>

I’d like to serve a particular rails app at /test and  
my webserver is serving up the app when I visit that URI but as  
suspected, rails looks for a controller or method called “test” and I  
get the following error message:  
No route matches “/test” with {:method=\>:get}

Can someone tell me what config change I need to make? I thought it  
might be the following line in config/environment.rb but I can’t get  
it to work by editing it.  
config.load\_paths += %W( {RAILS\_ROOT}/extras )

---

<div class="post-metadata">

**Author:** ![eggman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Post date:** [December 13, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/how-can-i-run-rails-at-a-uri-containing-a-folder-path/122909/2 "2007-12-13T12:32:34Z")

</div>

On Dec 11, 2007 10:19 AM, eggman2001 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> config.load\_paths += %W( {RAILS\_ROOT}/extras )  
> Sounds like you’re looking for relative\_url\_root:

[http://railsmanual.org/class/ActionController%3A%3AAbstractRequest/relative\_url\_root](http://railsmanual.org/class/ActionController%3A%3AAbstractRequest/relative_url_root)

–  
James M. | removed\_email\_address@domain.invalid  
Ruby and Ruby on Rails consulting  
[blog.restphone.com](http://blog.restphone.com)

---

<div class="post-metadata">

**Author:** ![eggman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Post date:** [December 19, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/how-can-i-run-rails-at-a-uri-containing-a-folder-path/122909/3 "2007-12-19T17:34:55Z")

</div>

Thank you
