首页 开发技术 其它     /    轨道创建动作实验室v-000-源码

轨道创建动作实验室v-000-源码

上传者: weixin_42152298 | 上传时间:2022/9/6 20:43:26 | 文件大小:44KB | 文件类型:ZIP
轨道创建动作实验室v-000-源码
建立举动实验室建立有效的create动作使用form_tag创建可提交给index操作的新表单正确命名表单字段,使其最终位于params哈希的顶层在create动作中将params中的数据分配给Student对象在create动作中保存该Student对象创建一个从create动作到show动作的redirect_to指示该实验室已经通过了许多规格测试,但是还有一些其他测试-包括我们第一次使用控制器测试-位于以下位置:控制器规格-specs/controllers/students_controller_spec.rb水豚规格-specs/features/student_spec.rb:37完成本实验后,您的应用程序应具有以下行为:用户在students/new上填写表格提交表单后,将在数据库中创建一条新记录用户提交表单后,他们将被重定向到show

文件下载

资源详情

[{"title":"(71个子文件44KB)轨道创建动作实验室v-000-源码","children":[{"title":"rails-create-action-lab-v-000-master","children":[{"title":"public","children":[{"title":"500.html <span style='color:#111;'>1.44KB</span>","children":null,"spread":false},{"title":"robots.txt <span style='color:#111;'>202B</span>","children":null,"spread":false},{"title":"422.html <span style='color:#111;'>1.51KB</span>","children":null,"spread":false},{"title":"favicon.ico <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"404.html <span style='color:#111;'>1.53KB</span>","children":null,"spread":false}],"spread":true},{"title":"config.ru <span style='color:#111;'>153B</span>","children":null,"spread":false},{"title":"db","children":[{"title":"seeds.rb <span style='color:#111;'>343B</span>","children":null,"spread":false},{"title":"schema.rb <span style='color:#111;'>992B</span>","children":null,"spread":false},{"title":"migrate","children":[{"title":"001_create_students.rb <span style='color:#111;'>223B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".learn <span style='color:#111;'>132B</span>","children":null,"spread":false},{"title":"lib","children":[{"title":"tasks","children":[{"title":".keep <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":[{"title":".keep <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Gemfile <span style='color:#111;'>1.03KB</span>","children":null,"spread":false},{"title":"spec","children":[{"title":"models","children":[{"title":"student_spec.rb <span style='color:#111;'>314B</span>","children":null,"spread":false}],"spread":true},{"title":"controllers","children":[{"title":"students_controller_spec.rb <span style='color:#111;'>511B</span>","children":null,"spread":false}],"spread":true},{"title":"spec_helper.rb <span style='color:#111;'>3.44KB</span>","children":null,"spread":false},{"title":"features","children":[{"title":"student_spec.rb <span style='color:#111;'>1.85KB</span>","children":null,"spread":false}],"spread":true},{"title":"rails_helper.rb <span style='color:#111;'>1.76KB</span>","children":null,"spread":false}],"spread":true},{"title":"Rakefile <span style='color:#111;'>249B</span>","children":null,"spread":false},{"title":"CONTRIBUTING.md <span style='color:#111;'>1.77KB</span>","children":null,"spread":false},{"title":"config","children":[{"title":"initializers","children":[{"title":"wrap_parameters.rb <span style='color:#111;'>485B</span>","children":null,"spread":false},{"title":"inflections.rb <span style='color:#111;'>647B</span>","children":null,"spread":false},{"title":"cookies_serializer.rb <span style='color:#111;'>244B</span>","children":null,"spread":false},{"title":"application_controller_renderer.rb <span style='color:#111;'>216B</span>","children":null,"spread":false},{"title":"session_store.rb <span style='color:#111;'>137B</span>","children":null,"spread":false},{"title":"filter_parameter_logging.rb <span style='color:#111;'>194B</span>","children":null,"spread":false},{"title":"new_framework_defaults.rb <span style='color:#111;'>1.09KB</span>","children":null,"spread":false},{"title":"mime_types.rb <span style='color:#111;'>156B</span>","children":null,"spread":false},{"title":"backtrace_silencers.rb <span style='color:#111;'>404B</span>","children":null,"spread":false},{"title":"assets.rb <span style='color:#111;'>486B</span>","children":null,"spread":false}],"spread":true},{"title":"application.rb <span style='color:#111;'>482B</span>","children":null,"spread":false},{"title":"environments","children":[{"title":"test.rb <span style='color:#111;'>1.71KB</span>","children":null,"spread":false},{"title":"development.rb <span style='color:#111;'>1.84KB</span>","children":null,"spread":false},{"title":"production.rb <span style='color:#111;'>3.49KB</span>","children":null,"spread":false}],"spread":true},{"title":"locales","children":[{"title":"en.yml <span style='color:#111;'>634B</span>","children":null,"spread":false}],"spread":false},{"title":"boot.rb <span style='color:#111;'>128B</span>","children":null,"spread":false},{"title":"spring.rb <span style='color:#111;'>111B</span>","children":null,"spread":false},{"title":"cable.yml <span style='color:#111;'>116B</span>","children":null,"spread":false},{"title":"secrets.yml <span style='color:#111;'>965B</span>","children":null,"spread":false},{"title":"puma.rb <span style='color:#111;'>1.96KB</span>","children":null,"spread":false},{"title":"routes.rb <span style='color:#111;'>249B</span>","children":null,"spread":false},{"title":"database.yml <span style='color:#111;'>552B</span>","children":null,"spread":false},{"title":"environment.rb <span style='color:#111;'>128B</span>","children":null,"spread":false}],"spread":false},{"title":"LICENSE.md <span style='color:#111;'>1.32KB</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>1.61KB</span>","children":null,"spread":false},{"title":".rspec <span style='color:#111;'>11B</span>","children":null,"spread":false},{"title":"Gemfile.lock <span style='color:#111;'>5.15KB</span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'>642B</span>","children":null,"spread":false},{"title":"app","children":[{"title":"views","children":[{"title":"layouts","children":[{"title":"application.html.erb <span style='color:#111;'>295B</span>","children":null,"spread":false}],"spread":false},{"title":"students","children":[{"title":"show.html.erb <span style='color:#111;'>29B</span>","children":null,"spread":false},{"title":"new.html.erb <span style='color:#111;'>31B</span>","children":null,"spread":false},{"title":"index.html.erb <span style='color:#111;'>126B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"models","children":[{"title":"student.rb <span style='color:#111;'>98B</span>","children":null,"spread":false},{"title":".keep <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"concerns","children":[{"title":".keep <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"controllers","children":[{"title":"application_controller.rb <span style='color:#111;'>204B</span>","children":null,"spread":false},{"title":"students_controller.rb <span style='color:#111;'>199B</span>","children":null,"spread":false},{"title":"concerns","children":[{"title":".keep <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"helpers","children":[{"title":"application_helper.rb <span style='color:#111;'>29B</span>","children":null,"spread":false}],"spread":false},{"title":"mailers","children":[{"title":".keep <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":false},{"title":"assets","children":[{"title":"images","children":[{"title":".keep <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":false},{"title":"stylesheets","children":[{"title":"application.css <span style='color:#111;'>686B</span>","children":null,"spread":false}],"spread":false},{"title":"javascripts","children":[{"title":"application.js <span style='color:#111;'>661B</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"bin","children":[{"title":"setup <span style='color:#111;'>920B</span>","children":null,"spread":false},{"title":"bundle <span style='color:#111;'>129B</span>","children":null,"spread":false},{"title":"rake <span style='color:#111;'>90B</span>","children":null,"spread":false},{"title":"rails <span style='color:#111;'>141B</span>","children":null,"spread":false},{"title":"update <span style='color:#111;'>782B</span>","children":null,"spread":false},{"title":"spring <span style='color:#111;'>507B</span>","children":null,"spread":false}],"spread":false},{"title":"vendor","children":[{"title":"assets","children":[{"title":"stylesheets","children":[{"title":".keep <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":false},{"title":"javascripts","children":[{"title":".keep <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明