Geocoding and XMLRPC

Hello people,

I’m implementing a geocoding feature in my web app, a classic feature,
for showing registered user by location.

For this purpose, I’ve inspired myself from the following tutorial :

http://earthcode.com/blog/2006/04/rails_geocoding_and_google_map.html

However, I’m getting this error from Rails :

uninitialized constant SandboxController::XMLRPC

Being a newbie to rails and webservices, I can’t figure out how to
solve this.

Can anyone help ?

Regards,

Joel

On 5 May 2008, at 12:44, joel wrote:

However, I’m getting this error from Rails :

uninitialized constant SandboxController::XMLRPC

Being a newbie to rails and webservices, I can’t figure out how to
solve this.

Sounds like you’re just missing
http://ruby-doc.org/stdlib/libdoc/xmlrpc/rdoc/classes/XMLRPC/Client.html

Just require that library and you should be ok.

Fred

Frederick C. wrote:

On 5 May 2008, at 12:44, joel wrote:

However, I’m getting this error from Rails :

uninitialized constant SandboxController::XMLRPC

Being a newbie to rails and webservices, I can’t figure out how to
solve this.

Sounds like you’re just missing
http://ruby-doc.org/stdlib/libdoc/xmlrpc/rdoc/classes/XMLRPC/Client.html

Just require that library and you should be ok.

Fred

Its working when u give the statement

require ‘xmlrpc/client’

before the server call to the xmlrpc in the controller.

I got this the latitude and longtitude values of the address in the
xmlrpc
but how to do with in the html pages, and how to get the values for the
address from db.

thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs