Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning neighborhoods from a region_children search. #24

Open
raielin opened this issue Oct 23, 2014 · 2 comments
Open

Returning neighborhoods from a region_children search. #24

raielin opened this issue Oct 23, 2014 · 2 comments

Comments

@raielin
Copy link

raielin commented Oct 23, 2014

Hi, I needed to be able to call just the name of the neighborhoods returned from a query like:

query = Rubillow::Neighborhood.region_children({state:"MA", city: "Boston", childtype: "neighborhood"})

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!

@synewaves
Copy link
Owner

@raielin is this something you can provide a pull request for?

@raielin
Copy link
Author

raielin commented Oct 24, 2014

@synewaves - no problem! just did. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants