rails-restful-index-action-lab-online-web-sp-000

时间:2021-03-20 01:22:56
【文件属性】:
文件名称:rails-restful-index-action-lab-online-web-sp-000
文件大小:51KB
文件格式:ZIP
更新时间:2021-03-20 01:22:56
Ruby RESTful索引操作实验室 目标 画一条获取路线 将路线映射到控制器动作 定义控制器动作 将实例从ActiveRecord加载到控制器实例变量中 渲染模板 在模板中使用控制器操作中的实例变量 遍历ERB中的ActiveRecord集合 建立经典的索引动作/视图 RESTful路线 在本实验中,您将逐步了解如何构建在浏览器中呈现学生列表所需的每个元素。该实验室的RSpec / Capybara测试可以在spec/features找到。两项测试都应通过以完成实验室。 指示 从终端运行bundle install 为学生创建一个控制器,并使其继承于ApplicationController 为路径/students创建一个映射到StudentsController index动作的路由。 将控制器动作添加到StudentsController命名index 让新的index操作提取带有Stu
【文件预览】:
rails-restful-index-action-lab-online-web-sp-000-master
----.gitignore(642B)
----README.md(2KB)
----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(1KB)
----db()
--------development.sqlite3(20KB)
--------seeds.rb(451B)
--------migrate()
--------schema.rb(983B)
--------test.sqlite3(20KB)
----log()
--------development.log(15KB)
--------.keep(0B)
--------test.log(53KB)
----app()
--------views()
--------mailers()
--------models()
--------helpers()
--------assets()
--------controllers()
----.learn(107B)
----.rspec(11B)
----CONTRIBUTING.md(2KB)
----vendor()
--------assets()
----Gemfile.lock(5KB)
----config()
--------database.yml(552B)
--------spring.rb(111B)
--------environment.rb(128B)
--------cable.yml(116B)
--------environments()
--------application.rb(482B)
--------secrets.yml(965B)
--------locales()
--------boot.rb(128B)
--------initializers()
--------routes.rb(139B)
--------puma.rb(2KB)
----LICENSE.md(1KB)
----spec()
--------models()
--------features()
--------rails_helper.rb(2KB)
--------spec_helper.rb(3KB)
----config.ru(153B)
----lib()
--------tasks()
--------assets()
----Rakefile(249B)

网友评论