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):
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
Most likely the problem is the rails root is not in the root of the
domain, so when the ajax request goes to:
the routing is expecting:
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.