Josh
2007-Jul-21 01:00 UTC
routing problems (works with mongrel / webrick, but fails in apache)
for some reason all of the apps in my server are not working when i upgraded my version of rails. booting up a ruby server on the same machine works fine, but when using fcgi/apache, only my root level routes are working. as a temporary fix, i was able to add a custom route for every controller i have like this... map.connect ''mycontroller/:action/:id'', :controller => ''mycontroller'' but i would like to figure out why this is happening in the first place. some searching around, i found a few people with the same problem but there weren''t any responses as to what could be the cause. anyone else has this problem with the default routes not working? here is the versions of everything that i am using: ruby 1.8.4 rails 1.2.3 gem 0.9.2 rake 0.7.2 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Josh
2007-Jul-21 01:25 UTC
Re: routing problems (works with mongrel / webrick, but fails in apache)
I finally found something: http://dev.rubyonrails.org/ticket/6755 Apparently it has something to do with the fact that I have my app symlinked to a folder that''s not the root. as suggested in that link, adding realpath() to RAILS_ROOT in the boot.rb seems to have fixed my problem. Anyone know if this is going to be fixed in a future version? On Jul 20, 8:00 pm, Josh <jjkie...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> for some reason all of the apps in my server are not working when i > upgraded my version of rails. booting up a ruby server on the same > machine works fine, but when using fcgi/apache, only my root level > routes are working. > > as a temporary fix, i was able to add a custom route for every > controller i have like this... > > map.connect ''mycontroller/:action/:id'', :controller => ''mycontroller'' > > but i would like to figure out why this is happening in the first > place. some searching around, i found a few people with the same > problem but there weren''t any responses as to what could be the cause. > > anyone else has this problem with the default routes not working? here > is the versions of everything that i am using: > > ruby 1.8.4 > rails 1.2.3 > gem 0.9.2 > rake 0.7.2--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---