rendering-collections-lab-atx01-seng-ft-060120

时间:2021-03-26 22:04:12
【文件属性】:
文件名称:rendering-collections-lab-atx01-seng-ft-060120
文件大小:53KB
文件格式:ZIP
更新时间:2021-03-26 22:04:12
Ruby 渲染收藏实验室 目标 使用局部关键字的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
----.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()
--------schema.rb(2KB)
----log()
--------.keep(0B)
----app()
--------views()
--------mailers()
--------models()
--------helpers()
--------assets()
--------controllers()
----.learn(79B)
----.rspec(41B)
----CONTRIBUTING.md(2KB)
----vendor()
--------assets()
----Gemfile.lock(5KB)
----config()
--------database.yml(552B)
--------spring.rb(111B)
--------environment.rb(128B)
--------cable.yml(116B)
--------environments()
--------application.rb(504B)
--------secrets.yml(965B)
--------locales()
--------boot.rb(128B)
--------initializers()
--------routes.rb(217B)
--------puma.rb(2KB)
----LICENSE.md(1KB)
----spec()
--------views()
--------rails_helper.rb(3KB)
--------spec_helper.rb(246B)
--------controllers()
----config.ru(153B)
----lib()
--------tasks()
--------assets()
----Rakefile(249B)

网友评论