[OSM-dev] Ruby-port api local use

Alex Wilson alex_wilson at pobox.com
Wed Jun 18 22:21:04 BST 2008


Hi all,

A quick and a dumb question: I've been trying to get the ruby port working
in order to compare the api query from it with the results of our C++
implementation of the api. I've imported a uk sub-section of world using
planetosm-to-db.pl into a mysql db - it seems to be successfully populated.
The local version of the server is up and running and in development mode.
However I get errors from the ruby when attempting to use the map query. Can
anyone help - or tell me which M to RTF? The error follows:

[2008-06-13 18:53:37.575916 #15008] NoMethodError (You have a nil object
when you didn't expect it!
The error occurred while evaluating nil.data_public?):
    /app/models/node.rb:123:in `to_xml_node'
    /app/controllers/api_controller.rb:160:in `map'
    /app/controllers/api_controller.rb:158:in `each'
    /app/controllers/api_controller.rb:158:in `map'

/var/lib/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/base.rb:1168:i
n `send'

/var/lib/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/base.rb:1168:i
n `perform_action_without_filters'

/var/lib/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/filters.rb:697
:in `call_filters'

/var/lib/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/filters.rb:689
:in `perform_action_without_benchmark
 /var/lib/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/benchmarking.r
b:68:in `perform_action_without_rescue'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080618/9b77f321/attachment.html>


More information about the dev mailing list