Project

addresses

0.01
No release in over 3 years
Low commit activity in last 3 years
Create Country, State, City, Neighborhood and a polymorphic model called Address that can be related as addessable.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 6.0.0
 Project Readme

= Addresses

This project rocks and uses MIT-LICENSE.

It allows you use these models:

  • Country
  • State (belongs to country)
  • City (belongs to State)
  • Neighborhood (belongs to city)
  • Address (Belongs to Neighborhood and City, because neighborhood is not required)

== Installation

=== Rails 6

This version requires Ruby >= 2.3.

Add this code to your Gemfile:

gem 'addresses', '~> 2.0'

=== Rails 5

This version requires Ruby >= 2.2 for older ruby versions add to your Gemfile "gem 'addresses', '0.0.9'".

Add this code to your Gemfile:

gem 'addresses', '~> 1.0.0'

=== Rails <= 4

Add this code to your Gemfile:

gem 'addresses', '0.0.9'

After this, add this line to your routes:

mount Addresses::Engine => "/addresses"

Copy migrations to your project and execute than to create tables in your database:

rake addresses:install:migrations
rake db:migrate