rails-generators-readme-v-000-源码

上传者: 42120541 | 上传时间: 2021-02-20 09:04:20 | 文件大小: 48KB | 文件类型: ZIP
轨道发电机 如果您列出了在应用程序中构建CRUD功能所需的所有任务,那么它的范围就很广。 通过创建数据库表,配置视图以及绘制单个路线,该功能部件的构建可能既耗时又容易出错。 如果有一种更有效的方法来集成标准功能,而不是每次都必须手动构建它们,那不是很好吗? Rails团队的主要目标是提高构建核心应用程序功能的效率。 Rails系统有许多生成器,它们将为我们完成一些手动工作。 使用生成器节省时间虽然很好,但它们还提供了一些其他额外的好处: 他们可以为应用程序的测试套件设置一些基本规格。 他们不会为我们编写复杂的逻辑测试,但是会提供一些基本示例。 每次都将它们设置为以相同的方式工作。 这有助于使代码标准化,并使开发效率更高,因为您不必担心与拼写,语法错误或手动编写代码时可能发生的其他事情有关的错误。 他们遵循Rails的最佳实践,包括使用RESTful命名模式,删除重复代码,使用局部

文件下载

资源详情

[{"title":"( 70 个子文件 48KB ) rails-generators-readme-v-000-源码","children":[{"title":"rails-generators-readme-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;'> 1.16KB </span>","children":null,"spread":false},{"title":"migrate","children":[{"title":"20151230232412_create_posts.rb <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"20160113163851_create_categories.rb <span style='color:#111;'> 169B </span>","children":null,"spread":false},{"title":"20160113163910_add_category_id_to_posts.rb <span style='color:#111;'> 122B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".learn <span style='color:#111;'> 68B </span>","children":null,"spread":false},{"title":"Gemfile <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"spec","children":[{"title":"models","children":[{"title":"author_spec.rb <span style='color:#111;'> 460B </span>","children":null,"spread":false},{"title":"category_spec.rb <span style='color:#111;'> 228B </span>","children":null,"spread":false}],"spread":true},{"title":"controllers","children":[{"title":"categories_controller_spec.rb <span style='color:#111;'> 300B </span>","children":null,"spread":false}],"spread":true},{"title":"spec_helper.rb <span style='color:#111;'> 4.24KB </span>","children":null,"spread":false},{"title":"features","children":[{"title":"post_spec.rb <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"rails_helper.rb <span style='color:#111;'> 2.45KB </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;'> 142B </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;'> 486B </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.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"locales","children":[{"title":"en.yml <span style='color:#111;'> 634B </span>","children":null,"spread":false}],"spread":true},{"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;'> 261B </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;'> 15.42KB </span>","children":null,"spread":false},{"title":".rspec <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"Gemfile.lock <span style='color:#111;'> 4.99KB </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;'> 299B </span>","children":null,"spread":false}],"spread":false},{"title":"posts","children":[{"title":"show.html.erb <span style='color:#111;'> 59B </span>","children":null,"spread":false},{"title":"new.html.erb <span style='color:#111;'> 201B </span>","children":null,"spread":false},{"title":"index.html.erb <span style='color:#111;'> 68B </span>","children":null,"spread":false},{"title":"edit.html.erb <span style='color:#111;'> 201B </span>","children":null,"spread":false}],"spread":false},{"title":"categories","children":[{"title":"show.html.erb <span style='color:#111;'> 103B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"models","children":[{"title":"category.rb <span style='color:#111;'> 58B </span>","children":null,"spread":false},{"title":"post.rb <span style='color:#111;'> 36B </span>","children":null,"spread":false}],"spread":false},{"title":"controllers","children":[{"title":"application_controller.rb <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"categories_controller.rb <span style='color:#111;'> 115B </span>","children":null,"spread":false},{"title":"posts_controller.rb <span style='color:#111;'> 536B </span>","children":null,"spread":false}],"spread":false},{"title":"assets","children":[{"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小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明