Using Geocode Ruby Gem to for User Address
I've using the Geocode Ruby Gem to convert the users input of zip/country into a nicely formated location (eg. Los Angeles, CA, USA). I also want to use the geocoding in the future (just in case you wonder why I'm going to so much trouble to pretty up the format

I migrated a column "address" into the user database. now I'm getting stuck with the geocoding and don't know if it is because I didn't create a locations folder in the database rather than migrate the column with the user database.

**I'm getting a routing error: undefined method `geocoded_by' for #<Class:0x3d21e78>**

I'm new at all this so I'm sorry if I'm not making any sense.

    class User < ActiveRecord::Base
      attr_accessible :name, :email, :aboutme, :address, :password, :password_confirmation
      has_secure_password

     geocoded_by :full_address
     after_validation :geocode, :if => :address_changed? 
    end

Here's my controller:

    def full_address 
      @user = User.find(params[:address])
      Geocode.serach("@user")
    end 
Using Geocode Ruby Gem to for User Address
===

I've using the Geocode Ruby Gem to convert the users input of zip/country into a nicely formated location (eg. Los Angeles, CA, USA). I also want to use the geocoding in the future (just in case you wonder why I'm going to so much trouble to pretty up the format

I migrated a column "address" into the user database. now I'm getting stuck with the geocoding and don't know if it is because I didn't create a locations folder in the database rather than migrate the column with the user database.

**I'm getting a routing error: undefined method `geocoded_by' for #<Class:0x3d21e78>**

I'm new at all this so I'm sorry if I'm not making any sense.

    class User < ActiveRecord::Base
      attr_accessible :name, :email, :aboutme, :address, :password, :password_confirmation
      has_secure_password

     geocoded_by :full_address
     after_validation :geocode, :if => :address_changed? 
    end

Here's my controller:

    def full_address 
      @user = User.find(params[:address])
      Geocode.serach("@user")
    end 