On Wed, Mar 30, 2011 at 5:06 PM, David Zhu <dzwestwindso...@gmail.com>wrote:
> Hi there, > > I need a database of most of the cities in the world for my application. I > know about the city database http://www.geonames.org , so I looked around, > and found this plugin for Ruby on Rails: > > http://github.com/joho/geonames-rails<https://github.com/joho/geonames-rails> > > I'm not sure if anyone has experience with something like this? > > The catch is: *I need the cities to have an association with countries, *like > Countries has many cities, and cities has many countries. I'm not sure if > that plugin is capable of doing that. > > Anyone used that plugin before? Does anyone have any ideas? > > I just did a quick install and setup for the plugin on a test app. Looking at the table migration and model code it has the country to city association already created in there. I would say that this plugin is going to do exactly what you want it to do. B. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.