没有合适的资源?快使用搜索试试~ 我知道了~
rendering-collections-lab-atx01-seng-ft-060120
共86个文件
rb:40个
keep:10个
erb:5个
需积分: 5 0 下载量 75 浏览量
2021-03-26
22:04:12
上传
评论
收藏 53KB ZIP 举报
温馨提示
渲染收藏实验室 目标 使用局部关键字的collection关键字 将集合传递给render方法 处理空集合 概述 让我们回到我们的商店域。 我们在网站的管理员部分中,管理员可以检查其订单和发票。 我们对其进行了稍微的更改,以便为数据库而不是带有订单存根的静态页面添加实际订单数据。 让我们重构商店的admin部分,以使用partials和render集合。 指示 我们提供了一个种子文件,因此您可以处理一些数据–运行rake db:seed来为数据库添加种子。 重构invoices/index.html.erb视图,以使用_invoice.html.erb呈现部分_invoice.html.erb 。 重构orders/index.html.erb视图,以使用_order.html.erb呈现部分_order.html.erb 。 在Learn.co上查看 ,并开始免费学习编码。
资源推荐
资源详情
资源评论
收起资源包目录
rendering-collections-lab-atx01-seng-ft-060120-master.zip (86个子文件)
rendering-collections-lab-atx01-seng-ft-060120-master
.gitignore 642B
README.md 1KB
bin
update 782B
rails 141B
bundle 129B
spring 463B
rake 90B
setup 920B
public
500.html 1KB
robots.txt 202B
422.html 2KB
404.html 2KB
favicon.ico 0B
Gemfile 2KB
db
seeds.rb 948B
migrate
20160125172450_create_orderedproducts.rb 213B
20160125170351_create_invoices.rb 144B
20160125172252_create_customers.rb 167B
20160125172335_create_products.rb 187B
20160125165439_create_orders.rb 197B
schema.rb 2KB
log
.keep 0B
app
views
layouts
admin.html.erb 352B
order_administration.html.erb 358B
application.html.erb 351B
orders
index.html.erb 404B
invoices
index.html.erb 286B
mailers
.keep 0B
models
product.rb 118B
concerns
.keep 0B
ordered_product.rb 88B
invoice.rb 59B
.keep 0B
order.rb 163B
customer.rb 59B
helpers
application_helper.rb 29B
assets
javascripts
store_admin.coffee 211B
application.js 661B
static.coffee 211B
stylesheets
store_admin.scss 181B
static.scss 177B
application.css 686B
images
.keep 0B
controllers
orders_controller.rb 94B
concerns
.keep 0B
invoices_controller.rb 100B
application_controller.rb 204B
.learn 79B
.rspec 41B
CONTRIBUTING.md 2KB
vendor
assets
javascripts
.keep 0B
stylesheets
.keep 0B
Gemfile.lock 5KB
config
database.yml 552B
spring.rb 111B
environment.rb 128B
cable.yml 116B
environments
test.rb 2KB
production.rb 4KB
development.rb 2KB
application.rb 504B
secrets.yml 965B
locales
en.yml 634B
boot.rb 128B
initializers
backtrace_silencers.rb 404B
session_store.rb 163B
mime_types.rb 156B
application_controller_renderer.rb 216B
filter_parameter_logging.rb 194B
cookies_serializer.rb 244B
new_framework_defaults.rb 1KB
assets.rb 486B
wrap_parameters.rb 485B
inflections.rb 647B
routes.rb 217B
puma.rb 2KB
LICENSE.md 1KB
spec
views
invoices_index_view_spec.rb 2KB
orders_index_view_spec.rb 1KB
rails_helper.rb 3KB
spec_helper.rb 246B
controllers
store_admin_controller_spec.rb 1KB
config.ru 153B
lib
tasks
.keep 0B
assets
.keep 0B
Rakefile 249B
共 86 条
- 1
资源评论
铭哲友野
- 粉丝: 29
- 资源: 4534
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功