pinas:这个 gem 提供了菲律宾位置的分层列表

时间:2021-06-06 03:14:31
【文件属性】:
文件名称:pinas:这个 gem 提供了菲律宾位置的分层列表
文件大小:866KB
文件格式:ZIP
更新时间:2021-06-06 03:14:31
Ruby 皮纳斯 这个 gem 提供了菲律宾位置的分层列表。 安装 将此行添加到应用程序的 Gemfile 中: gem 'pinas' 然后执行: $ bundle 或者自己安装: $ gem install pinas 设置 $ rails g pinas:install $ rake db:migrate $ rake pinas:load_data 用法/示例 gem 在 4 个位置级别提供 ActiveRecord 模型Pinas::Location # All regions Pinas::Location.regions # All provinces Pinas::Location.provinces # All towns Pinas::Location.towns # All barangays Pinas::Location.barangays 或者你可以得
【文件预览】:
pinas-master
----.gitignore(185B)
----.rspec(8B)
----.travis.yml(178B)
----LICENSE.txt(1KB)
----pinas.gemspec(1KB)
----spec()
--------pinas_spec.rb(75B)
--------spec_helper.rb(0B)
----README.md(2KB)
----lib()
--------pinas.rb(148B)
--------generators()
--------tasks()
--------pinas()
----Gemfile(90B)
----Rakefile(145B)
----philippines.png(14KB)

网友评论