没有合适的资源?快使用搜索试试~ 我知道了~
postally_addressable:为您的模型添加邮政地址
共72个文件
rb:34个
keep:8个
erb:6个
需积分: 8 0 下载量 149 浏览量
2021-06-18
16:34:19
上传
评论
收藏 44KB ZIP 举报
温馨提示
邮政可寻址 PostallyAddressable 允许您向模型添加邮政地址。 邮政地址都使用多态保存在一个地方,因此您在跟踪新模型的地址时不必创建额外的列。 如果您的应用程序需要这些信息,您还可以将纬度、经度和时区保存到邮政地址。 去做 文档 测试(针对“has_postal_address 模型”) 兼容性 适用于ActiveRecord 3+。 安装 轨道 3 和 4 将 PostallyAddressable 添加到您的Gemfile 。 gem 'postally_addressable', :git => 'git://github.com/mariusz360/postally_addressable.git' 生成将postal_addresses表添加到数据库的迁移。 bundle exec rails generate postally_addressable:
资源推荐
资源详情
资源评论
收起资源包目录
postally_addressable-master.zip (72个子文件)
postally_addressable-master
bin
rails 501B
Rakefile 721B
test
functional
controller_test.rb 1KB
test_helper.rb 719B
postally_addressable_test.rb 785B
unit
postal_address_test.rb 3KB
dummy
log
.keep 0B
bin
rake 90B
setup 805B
rails 145B
bundle 129B
config
locales
en.yml 634B
database.yml 552B
initializers
filter_parameter_logging.rb 194B
assets.rb 486B
wrap_parameters.rb 517B
backtrace_silencers.rb 404B
session_store.rb 137B
cookies_serializer.rb 129B
mime_types.rb 156B
inflections.rb 647B
application.rb 1KB
routes.rb 58B
boot.rb 241B
secrets.yml 964B
environment.rb 150B
environments
test.rb 2KB
development.rb 2KB
production.rb 3KB
db
migrate
20150302155312_set_up_test_tables.rb 1KB
schema.rb 2KB
Rakefile 249B
test
controllers
users_controller_test.rb 132B
app
models
concerns
.keep 0B
rental.rb 81B
.keep 0B
user.rb 80B
assets
images
.keep 0B
javascripts
application.js 602B
stylesheets
application.css 686B
controllers
users_controller.rb 845B
concerns
.keep 0B
application_controller.rb 300B
views
layouts
application.html.erb 295B
users
index.html.erb 489B
edit.html.erb 110B
new.html.erb 75B
show.html.erb 115B
_form.html.erb 408B
mailers
.keep 0B
helpers
application_helper.rb 29B
README.rdoc 478B
lib
assets
.keep 0B
public
404.html 2KB
500.html 1KB
422.html 2KB
favicon.ico 0B
config.ru 153B
app
models
postal_address.rb 1KB
.keep 0B
Gemfile 575B
Gemfile.lock 3KB
.gitignore 140B
postally_addressable.gemspec 812B
lib
postally_addressable.rb 266B
generators
postally_addressable
install_generator.rb 794B
templates
create_postal_addresses.rb 762B
postally_addressable
has_postal_address.rb 1KB
engine.rb 70B
version.rb 51B
README.md 3KB
MIT-LICENSE 1KB
共 72 条
- 1
资源评论
剑道小子
- 粉丝: 26
- 资源: 4623
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功