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'
_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

Reply via email to