On 15 January 2011 10:02, Tim <[email protected]> wrote: > Has anyone else any feedback to give me on this?! I still havent > progressed in the matter. Really frustrating. Thanks in advance!!
So what did you learn from debugging it? Colin > Regards > > On 14 Jan, 13:00, Colin Law <[email protected]> wrote: >> On 14 January 2011 11:33, Tim <[email protected]> wrote: >> >> >> >> >> >> >> >> > On Jan 14, 11:01 am, Frederick Cheung <[email protected]> >> > wrote: >> >> On Jan 13, 8:51 pm, Tim <[email protected]> wrote: >> >> >> > Hi I cant seem to figure out this problem. Im using Nokogiri to >> >> > connect to an API and parse the XML response. I am then trying to >> >> > display it in my view. I can se the data in my Terminal when I do some >> >> > debugging on the XML object but cant seem to get it to the view. I >> >> > have pasted some of the code >> >> > herehttp://refactormycode.com/codes/1567-problem-with-passing-xml-from-ap... >> >> > Please all help is appreciated. >> >> > Thanks!! >> >> >> So, what happens when you try and access view this page in your >> >> browser ? have you verified what @news contains ? >> >> >> Fred >> >> > Hi Fred! >> > I did some output on the @news object in my view and I do get some >> > console output of the xml response but in the browser its empty. How >> > do you do some descent debugging on objects in Rails 3?! First I did >> > some good old puts and then I merely did <%= @news %>. So to round it >> > up. It seems though as @news contains the xml but I cant display it in >> > the browser. Also I cant see the <li> for some unexplained reason. >> > When I debug in the browser the DOM stops at <ul id="news"> >> > Feeling a bit confused about this:) >> >> You can use ruby-debug to break into the code (model, controller or >> view) in order to inspect data. See the Rails Guide on debugging for >> how to do this, and other tips for debugging. >> >> Colin > > -- > 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. > > -- 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.

