But, in its current state, query.regions[0].neighborhood returns an empty string. In looking at the query results, I think it's just a matter of changing @neighborhood = @parser.xpath('//neighborhood').text to @neighborhood = @parser.xpath('//name').text in the model region.rb.
IF this seems right, would appreciate this minor edit! Thanks!
Hi, I needed to be able to call just the name of the neighborhoods returned from a query like:
But, in its current state,
query.regions[0].neighborhood
returns an empty string. In looking at the query results, I think it's just a matter of changing@neighborhood = @parser.xpath('//neighborhood').text
to@neighborhood = @parser.xpath('//name').text
in the model region.rb.IF this seems right, would appreciate this minor edit! Thanks!