[LRUG] routes problem
Riccardo Tacconi
rtacconi at gmail.com
Thu Feb 18 06:51:59 PST 2010
Hi,
I have routes configuration like this:
map.resources :folders
map.connect 'change_team/:id/:team_id', :controller => 'whoswho', :action =>
'change_team'
map.connect 'holiday/reset_line_manager/:id', :controller => 'holiday',
:action => 'disconnect'
map.connect 'holiday/list_users/:id', :controller => 'holiday', :action =>
'list_users'
map.connect 'test', :controller => 'test', :action => 'index'
map.connect 'tutorials', :controller => 'categories', :action => 'index'
map.connect 'showvideo/:title', :controller => 'videos', :action =>
'title'
map.connect 'access/', :controller => 'access'
#map.connect "reports/:action", :controller => :reports
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
In development with Mongrel I am able to call domain.com/reports but in
production I get a 'No route matches "/reports" with {:method=>:get}' error
if I call domain.com/apps/reports. The production run with Passenger as sub
directory (apps).
Is the problem caused because I am running Rails in a sub directory with
Passenger?
Is it because routes work is in an inconsistent way between Mongrel and
Passenger?
--
Riccardo Tacconi
Web developer at Wolseley UK
VIRTUELOGIC LIMITED (Director)
http://www.linkedin.com/in/riccardotacconi
http://riccardotacconi.blogspot.com/
http://twitter.com/rtacconi
Linux user: #400461
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20100218/99fffcd2/attachment-0003.html>
More information about the Chat
mailing list