Yes, like this: get :reload puts "@response.body: [[email protected]}]"
Results in: @response.body: [] On Sat, Mar 14, 2009 at 3:35 PM, Frederick Cheung < [email protected]> wrote: > > > > On Mar 14, 1:29 pm, Commander Johnson <[email protected]> > wrote: > > @response.body is an empty string! > > Are you checking this after the call to the controller has been made ? > > Fred > > With the debugger, I can find @response.template.content_for_layout but > > that's not accessible with a method call. > > > > This is the controller code: > > > > respond_to do |format| > > format.html > > end > > > > On Sat, Mar 14, 2009 at 1:45 PM, Frederick Cheung < > > > > [email protected]> wrote: > > > > > On Mar 14, 11:24 am, Commander Johnson <[email protected]> > > > wrote: > > > > Hi, > > > > > > How do you get the rendered output (sent to the browser) in a > controller > > > > functional test? > > > > > Have a look at @response.body > > > > > Fred > > > > > > I searched for this, and tried things like > > > > > > @content_for_layout > > > > @response.template.content_for_layout > > > > yield > > > > yield :layout > > > > > > CmdJohnson > > > --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

