I believe the problem is the "return" statement (with no args) after the redirect_to either
1) remove the "return" statement 2) merge the two lines: return redirect_to :controller => '/my/video', :action => 'list' On Tue, Aug 4, 2009 at 2:27 PM, Scott Olmsted <[email protected]> wrote: > > I'm fixing bugs in an existing Rails 2.0.2 app and trying to do a redirect > after an upload of some info: > > RAILS_DEFAULT_LOGGER.info(">>>>>>>>> redirect_to :controller => > '/my/video', :action => 'list'") > redirect_to :controller => '/my/video', :action => 'list' > return > > But although the log says it worked: > > >>>>>>>>> redirect_to :action => 'list', :controller => 'my/video' > Redirected to http://localhost:3000/my/video/list > Completed in 0.03208 (31 reqs/sec) | DB: 0.01528 (16%) | 302 Found > [http://localhost/my/video/upload > ] > > ...(SQL calls logged here)... > > Rendering template within layouts/application > Rendering my/video/list > > the new page is not rendered. The status line of the browser displays > 'Waiting for localhost', then 'Done'. > > Manually entering http://localhost:3000/my/video/list into the browser > produces the desired page. > > I've already tried changing 'list' to :list and 'my/video' to :"my/video" > without effect. I've also commented out all the upload code so that > essentially nothing is done before the redirect. Routes are not even REST, > just plain old > > map.connect ':controller/:action/:id' > > I've cleared the browser cache. And of course I've googled till I'm tired > of googling. > > Any ideas? > > Thanks much. > > Scott > > P.S. So who's coming to the barbecue Saturday? Burgers, beer, wine, > munchies--tell us what you're bringing. > > > --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
