Topic: Routing Conundrum
Where does route.rb get its information about the current request? My (seemingly mistaken) impression was that the environment variables REQUEST_URI and REQUEST_GET are used.
Here's why that cannot be the complete answer:
I have this route
which works as expected using the console with the following two tests
1) I manually enter environment values for REQUEST_URI and REQUEST_GET and run Dispatcher.dispatch
2) I make a ActionController::Routing::Routes and run recognize_path
both give me the :controller, :action, and :anything that I expect to get.
But when I run thru Apache (2.0 on a new HighSpeedRails account), params[:anything]
is different: it remains empty no matter what URI is given to the browser.
I know the problem is not the values of REQUEST_URI and REQUEST_GET because I have
tested the environment values gotten by rails. Even though params[:anything] is
empty these environment values are right on the one money with requests having as
many constituent parts as I have had the patience to try.
I am a newbie to rails. Before this I have only played around with InstantRails. As
things are, I have never managed to run any application on my HighSpeedRails server that
requires a nontrivial URI.