Bsc Plugin (Brazilian States and Cities Plugin)

This plugin is usefull to brazilian developers. It generate the models Country, State and City and load the database with all brasilians states and all brasilians cities.

Download the plugin

svn co https://svn.colivre.coop.br/svn/rails/plugins/bsc_plugin

Preparing your System

Run the command:

  ./script/generate bsc_migration

To create the migration file that will contain the definition of country, state and city objects.

Besides upgrade your database (rake db:migrate)

Now the plugin is ready to be used.

HOW TO USE IT

To populate your database with all brasilian staes and cities run the command:

  rake bsc_plugin:all

If you want cities of a specific "state", run the command

  rake bsc_plugin:"state"

-- LeandroNunes - 27 Sep 2007
Topic revision: r2 - 27 Sep 2007, LeandroNunes
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki-Colivre? Send feedback