# Error on new install "View Application's Environment"

**URL:** <https://www.ruby-forum.com/t/error-on-new-install-view-applications-environment/58583>\
**Category:** Rails\
**Created:** [April 23, 2006, 6:04pm UTC](https://www.ruby-forum.com/t/error-on-new-install-view-applications-environment/58583 "2006-04-23T18:04:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hikaru79](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@hikaru79](https://www.ruby-forum.com/u/hikaru79)\
**Post date:** [April 23, 2006, 6:04pm UTC](https://www.ruby-forum.com/t/error-on-new-install-view-applications-environment/58583/1 "2006-04-23T18:04:49Z")

</div>

Hello. I recently installed Rails on Gentoo, and did a “rails  
/var/www/localhost/htdocs/parallel\_bible/” just to test. Everything  
_seemed_ to work fine, but when I clicked on the “View your  
Application’s Environment” link, this happens (screenshot attached):  
[http://thegoban.com/rorerror.png](http://thegoban.com/rorerror.png)

Any ideas? Is this normal? I know it’s not actually stopping me from  
doing anything, but its a bit unnerving to not know why this is  
happening. Any help would be greatly appreciated 🙂

Thanks!  
–Adrian

---

<div class="post-metadata">

**Author:** ![hikaru79](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@hikaru79](https://www.ruby-forum.com/u/hikaru79)\
**Post date:** [April 23, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/error-on-new-install-view-applications-environment/58583/2 "2006-04-23T20:56:31Z")

</div>

Adrian Petrescu wrote:

> Hello. I recently installed Rails on Gentoo, and did a “rails  
> /var/www/localhost/htdocs/parallel\_bible/” just to test. Everything  
> _seemed_ to work fine, but when I clicked on the “View your  
> Application’s Environment” link, this happens (screenshot attached):  
> [http://thegoban.com/rorerror.png](http://thegoban.com/rorerror.png)
> 
> Any ideas? Is this normal? I know it’s not actually stopping me from  
> doing anything, but its a bit unnerving to not know why this is  
> happening. Any help would be greatly appreciated 🙂
> 
> Thanks!  
> –Adrian

Most likely the problem is the rails root is not in the root of the  
domain, so when the ajax request goes to:  
“[http://192.168.1.23/parallel\_bible/public/rails/info/properties](http://192.168.1.23/parallel_bible/public/rails/info/properties)”

the routing is expecting:  
“[http://192.168.1.23/rails/info/properties](http://192.168.1.23/rails/info/properties)”

Rails doesnt like being in a subfolder, and I haven’t gotten routing +  
asset helpers to behave nicely from a subfolder. I suggest testing a  
new app from a subdomain rather than a directory.

That said, there are way to get rails working in a subdirectory, it’s  
just a bit more footwork, and I am unfamilar with the procedure.

---

<div class="post-metadata">

**Author:** ![hikaru79](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@hikaru79](https://www.ruby-forum.com/u/hikaru79)\
**Post date:** [April 23, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/error-on-new-install-view-applications-environment/58583/3 "2006-04-23T22:21:08Z")

</div>

I thought this might be the problem too, but when I did “updatedb &&  
locate rails\_info/properties”, it didn’t find anything anywhere on the  
system. If it was simply a matter of incorrect routing, then surely the  
correct destination would be _somewhere_ on the machine, right?

Alex W. wrote:

> Adrian Petrescu wrote:
> 
> > Hello. I recently installed Rails on Gentoo, and did a “rails  
> > /var/www/localhost/htdocs/parallel\_bible/” just to test. Everything  
> > _seemed_ to work fine, but when I clicked on the “View your  
> > Application’s Environment” link, this happens (screenshot attached):  
> > [http://thegoban.com/rorerror.png](http://thegoban.com/rorerror.png)
> > 
> > Any ideas? Is this normal? I know it’s not actually stopping me from  
> > doing anything, but its a bit unnerving to not know why this is  
> > happening. Any help would be greatly appreciated 🙂
> > 
> > Thanks!  
> > –Adrian
> 
> Most likely the problem is the rails root is not in the root of the  
> domain, so when the ajax request goes to:  
> “[http://192.168.1.23/parallel\_bible/public/rails/info/properties](http://192.168.1.23/parallel_bible/public/rails/info/properties)”
> 
> the routing is expecting:  
> “[http://192.168.1.23/rails/info/properties](http://192.168.1.23/rails/info/properties)”
> 
> Rails doesnt like being in a subfolder, and I haven’t gotten routing +  
> asset helpers to behave nicely from a subfolder. I suggest testing a  
> new app from a subdomain rather than a directory.
> 
> That said, there are way to get rails working in a subdirectory, it’s  
> just a bit more footwork, and I am unfamilar with the procedure.

---

<div class="post-metadata">

**Author:** ![hikaru79](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/da6949/32.png) [@hikaru79](https://www.ruby-forum.com/u/hikaru79)\
**Post date:** [April 24, 2006, 10:27am UTC](https://www.ruby-forum.com/t/error-on-new-install-view-applications-environment/58583/4 "2006-04-24T10:27:37Z")

</div>

That route is specifically looking for “/rails/info/properties” the  
trouble is if you actually go there, that url is not being handled by  
rails. And if your in the rails sub directory, then it will never match  
that route. So you wont be able to get to it at all.

Adrian Petrescu wrote:

> I thought this might be the problem too, but when I did “updatedb &&  
> locate rails\_info/properties”, it didn’t find anything anywhere on the  
> system. If it was simply a matter of incorrect routing, then surely the  
> correct destination would be _somewhere_ on the machine, right?
> 
> Alex W. wrote:
> 
> > Adrian Petrescu wrote:
> > 
> > > Hello. I recently installed Rails on Gentoo, and did a “rails  
> > > /var/www/localhost/htdocs/parallel\_bible/” just to test. Everything  
> > > _seemed_ to work fine, but when I clicked on the “View your  
> > > Application’s Environment” link, this happens (screenshot attached):  
> > > [http://thegoban.com/rorerror.png](http://thegoban.com/rorerror.png)
> > > 
> > > Any ideas? Is this normal? I know it’s not actually stopping me from  
> > > doing anything, but its a bit unnerving to not know why this is  
> > > happening. Any help would be greatly appreciated 🙂
> > > 
> > > Thanks!  
> > > –Adrian
> > 
> > Most likely the problem is the rails root is not in the root of the  
> > domain, so when the ajax request goes to:  
> > “[http://192.168.1.23/parallel\_bible/public/rails/info/properties](http://192.168.1.23/parallel_bible/public/rails/info/properties)”
> > 
> > the routing is expecting:  
> > “[http://192.168.1.23/rails/info/properties](http://192.168.1.23/rails/info/properties)”
> > 
> > Rails doesnt like being in a subfolder, and I haven’t gotten routing +  
> > asset helpers to behave nicely from a subfolder. I suggest testing a  
> > new app from a subdomain rather than a directory.
> > 
> > That said, there are way to get rails working in a subdirectory, it’s  
> > just a bit more footwork, and I am unfamilar with the procedure.
