省市区街道四级联选择 Rails Engine Gem 示例代码
http://china-city-example.herokuapp.com/
一键创建 Heroku App 查看效果
本地启动
git clone https://github.com/saberma/china_city_example.git
cd china_city_example
bundle
rails s
访问 http://localhost:3000/ 即可看到效果。
把省市区街道插件集成到自己的项目
可以参考 https://github.com/saberma/china_city_example/commit/e57aa13584c2769bc94eea4fdbdfb4323091af2f