geokit / geokit-rails

Official Geokit plugin for Rails/ActiveRecord. Provides location-based goodness for your Rails app. Requires the Geokit gem.
MIT License
1.57k stars 245 forks source link

Where is config file? #51

Closed tjoneseng closed 9 years ago

tjoneseng commented 10 years ago

The README refers to file assets/api_keys_template for a default configuration file. This seems to be missing. I see no source for the configuration file anywhere in the source. I was expecting a rake task or some such to generate the default configuration file.

mnoack commented 10 years ago

I think that file was remove a while ago. In my opinion it's not really useful, probably the most frequent option is: Geokit::default_units = :miles

The README of https://github.com/geokit/geokit has a good example. Perhaps you can help improve our docs with a Pull Request?

JamesHagerman commented 10 years ago

Okay, then the docs need to be updated. The config file is not added to the project when the gem is installed.

Also, at least two different methods for defining config files are mentioned somewhere in the two repos:

Geokit::default_units = :miles versus config.geokit.default_units = :miles

kwerle commented 9 years ago

It would be much much better to have the 'nearly useless' config file in place with all the options listed and appropriately commented out - just like virtually every other gem does. Way better to see what's possible and have it be clear.