Displaying 1 result from an estimated 1 matches for "tn22".
Did you mean:
  t22
  
2006 May 18
3
Google Map
...oogle-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)
    @postcode = postcode
  end
  def to_latlong...