Spree Counties
Lets your users pick counties from states list in address's step
Installation
Add spree_counties to your Gemfile:
gem 'spree_counties'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g spree_counties:install
Documentation
Pay atention to Spree::Address#require_county? method if you want validation in county fields
Testing
First bundle your dependencies, then run rake
. rake
will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app
.
bundle
bundle exec rake
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_counties/factories'
Copyright (c) 2014 Gonzalo Moreno C, released under the New BSD License