rails + apache2 + fcgi: Default Rails application fails with "ActionController::RoutingError (no route found to match "/" with {:method=>:get})"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libfcgi-ruby (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libfcgi-ruby1.8
I was setting up the environment for developing Ruby on Rails applications.
The howtos recommend setting apache2 server with fcgi to improve the performance of RoR applications.
I followed the instructions from various places. All of the instructions on the net are similar to each other. I was not able to find the reason for the behaviour that is happening on my computer.
The overview of my setup is logged in https:/
I have installed everything that is required to run RoR applications via Apache2 + fcgi using apt.
After creating an empty rails application the default rails page displays if the fcgi is disabled. As soon as I enable the fcgi, the page displays only:
ActionControlle
no route found to match "/" with {:method=>:get}
The development.log contains the following log:
ActionControlle
/vendor/
/vendor/
/vendor/
/vendor/
/vendor/
/vendor/
/vendor/
/usr/
/usr/
/usr/
/vendor/
/vendor/
/vendor/
/home/
Output of ruby -d dispatch.fcgi contains statements of various missing files. Many of those files are installed (e.g. html/tokenizer), some are not.
Solved the problem by myself (it was not a bug at all). RewriteRule in .htaccess for fcgi was specified twice by mistake.