Thursday, November 3, 2011

Re: [Rails] Re: Store XML format data into database

On 3 November 2011 14:47, Preksha Patel <lists@ruby-forum.com> wrote:
> Hi,
>
> Now I am not getting an error but XML values are stored like '--0 \n'.
>
> Code is:
>
>  doc.xpath('//item').each do |tag|
>       @req = Hash.new
>       @req = tag.children[9]

Have you used ruby-debug to break into the code here and see what
tag.children[9] looks like? Have a look at the Rails Guide on
debugging to see how to do this.

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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate