search for: postcode_2_latlong

Displaying 1 result from an estimated 1 matches for "postcode_2_latlong".

2006 May 18
3
Google Map
...eat howto @ http://iamrice.org/articles/2005/12/09/using-google-maps-in-the-uk-with-rails for using google maps on uk sites. Just having one issue I can''t seem to work out how to draw the postcode from my table I keep getting hit by method errors. The controller is require ''postcode_2_latlong'' postcode = Postcode.new("TN22 2LG") # I want this to be a postcode from my database not TN22... latlong = postcode.to_latlong Then postcode.rb in /lib reads... require ''uri'' require ''open-uri'' class Postcode def initialize(postcode) @...