Skip to content
Snippets Groups Projects
Commit 2efda569 authored by Alex Reisner's avatar Alex Reisner
Browse files

Rename README sections: Install/Configure/Use.

parent 552338bf
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Geocoder adds database-agnostic object geocoding to Rails (via Google). It does not rely on proprietary database functions so reasonably accurate distances can be calculated in MySQL or even SQLite. Geocoder adds database-agnostic object geocoding to Rails (via Google). It does not rely on proprietary database functions so reasonably accurate distances can be calculated in MySQL or even SQLite.
== Setup == Install
Install either as a plugin: Install either as a plugin:
...@@ -16,6 +16,8 @@ or as a gem: ...@@ -16,6 +16,8 @@ or as a gem:
# at command prompt: # at command prompt:
sudo rake gems:install sudo rake gems:install
== Configure
To add geocoding features to a class: To add geocoding features to a class:
geocoded_by :location geocoded_by :location
...@@ -36,8 +38,7 @@ If your model has +address+, +city+, +state+, and +country+ attributes your +loc ...@@ -36,8 +38,7 @@ If your model has +address+, +city+, +state+, and +country+ attributes your +loc
[address, city, state, country].compact.join(', ') [address, city, state, country].compact.join(', ')
end end
== Use
== Features
Assuming +Venue+ is a geocoded model: Assuming +Venue+ is a geocoded model:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment