Hello!
I have FriendshipRequests controller under controllers/users/ namespace. The problem appeared after setting up stage server: same url is processed different locally and on the stage.
locally (mac os X, ruby 1.8.7p174, frozen rails 2.3.8, rack 1.1.0)
/users/friendship_requests/accept?req_id=3
routes to
Processing Users::FriendshipRequestsController#index (for 127.0.0.1 at 2010-08-30 19:55:56) [GET]
Parameters: {"action"=>"index", "notice"=>"Friendship was accepted.", "controller"=>"users/friendship_requests"}
On the stage server (Debian Linux 2.6.21.7-2.fc8xen-ec2-v1.0 #1 SMP Tue Sep 1 10:25:30 EDT 2009 x86_64 GNU/Linux, ruby 1.8.7p302, rack 1.1.0)
the same url routes to
Processing UsersController#friendship_requests (for 119.170.16.22 at 2010-08-30 16:18:41) [GET]
Parameters: {"action"=>"friendship_requests", "id"=>"accept", "controller"=>"users", "req_id"=>"3"}
Problem could be solved by adding map.connect 'users/friendship_requests/:action/:id', :controller => 'users/friendship_requests'
to config/routes, but I want to know causes of the problem.
Both instances are running under latest nginx passenger. Running locally under production environment nade no difference.
Thanks!