hi, having a maddening problem with a redirects between controllers. app is working fine on my two local machines, a mac and a pc, with either webrick and lighttpd/cgi on either machines. i move it to my hosting provider and try to get it working with apache + cgi, most of it works, but it fails at a specific spot, and causes dispatch.cgi to hang indefinitely. nothing shows up at all in the rails logs, which makes me think it might be an apache or .htaccess issue. i have .htaccess set up for dispatch.cgi. it hangs on a redirect_to call -- i see the redirect happen in the logs, then no sign it ever makes it to the controller/method it''s redirecting to. other redirects in the app work fine, but this one, unlike the others, redirects from one controller to another. i found a post elsewhere, which describes a similar problem. per what''s said in that post, i tried removing all the logging statements in the relevant methods of my app, to no avail. i think that might be a red herring, but who knows. if anyone has any ideas, i''d be grateful. been banging my head on this for days, and it''s driving me crazy. the post w/similar issue: http://forums.asmallorange.com/index.php?showtopic=5880&hl ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
what is the code for redirect that causes a problem? On 3/19/06, jmcgrath@whoi.edu <jmcgrath@whoi.edu> wrote:> > hi, having a maddening problem with a redirects between controllers. > > app is working fine on my two local machines, a mac and a pc, with either > webrick and lighttpd/cgi on either machines. > > i move it to my hosting provider and try to get it working with apache + > cgi, > most of it works, but it fails at a specific spot, and causes dispatch.cgito > hang indefinitely. nothing shows up at all in the rails logs, which makes > me > think it might be an apache or .htaccess issue. i have .htaccess set up > for > dispatch.cgi. > > it hangs on a redirect_to call -- i see the redirect happen in the logs, > then no > sign it ever makes it to the controller/method it''s redirecting to. other > redirects in the app work fine, but this one, unlike the others, redirects > from > one controller to another. > > i found a post elsewhere, which describes a similar problem. per what''s > said in > that post, i tried removing all the logging statements in the relevant > methods > of my app, to no avail. i think that might be a red herring, but who > knows. > > if anyone has any ideas, i''d be grateful. been banging my head on this for > days, > and it''s driving me crazy. > > the post w/similar issue: > http://forums.asmallorange.com/index.php?showtopic=5880&hl> > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060318/9b3bee36/attachment.html
> what is the code for redirect that causes a problem?here''s the line: redirect_to :controller => ''asset'', :action => ''create'', :c => params[:c], :collection_id => params[:collection_id] this exact redirect works fine from within the asset controller, but when called from a different controller it fails silently and hangs dispatch.cgi found a solution, though: joe, administrator extraordinaire of railsplayground and provider of top-notch customer service, moved the app from apache to lightpd, et voila, everything works. would still like to know what was going on, but navigating around that shoal is fine for now.> > On 3/19/06, jmcgrath@whoi.edu <jmcgrath@whoi.edu> wrote: > > > > hi, having a maddening problem with a redirects between controllers.---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.