ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# Ruby on Rails 指南 (651bba1) > 来源:[Ruby on Rails 指南 (651bba1)](http://guides.ruby-china.org/index.html) > 本著作采用[创用 CC 姓名标示-相同方式分享 4.0 国际授权条款](https://creativecommons.org/licenses/by-sa/4.0/)授权。 > “Rails”、“Ruby on Rails”,以及 Rails logo 为 David Heinemeier Hansson 的商标。版权所有。 基于 Rails 4.1 翻译而成。 Rails Guides 涵盖 Rails 的方方面面,文章内容深入浅出,易于理解,是 Rails 入门、开发的必备参考。 其它版本:[Rails 4.0.8](http://guides.rubyonrails.org/v4.0.8/)、[Rails 3.2.19](http://guides.rubyonrails.org/v3.2.19/)、[Rails 2.3.11](http://guides.rubyonrails.org/v2.3.11/)。 由此图案标记的指南代表原文正在撰写中,或是尚待翻译。正在撰写中的原文不会收录在上方的指南目录里。可能包含不完整的资讯与错误。 ### 入门 [Rails 入门](getting_started.html) 从安装到建立第一个应用程序所需知道的一切。 ### 模型 [Active Record 基础](active_record_basics.html) 本篇介绍 Models、数据库持久性以及 Active Record 模式。 [Active Record 数据库迁移](active_record_migrations.html) 本篇介绍如何有条有理地使用 Active Record 来修改数据库。 [Active Record 数据验证](active_record_validations.html) 本篇介绍如何使用 Active Record 验证功能。 [Active Record 回调](active_record_callbacks.html) 本篇介绍如何使用 Active Record 回调功能。 [Active Record 关联](association_basics.html) 本篇介绍如何使用 Active Record 的关联功能。 [Active Record 查询](active_record_querying.html) 本篇介绍如何使用 Active Record 的数据库查询功能。 ### 视图 [Action View 基础](action_view_overview.html) 原文撰写中 本篇介绍 Action View 辅助方法。 [Rails 布局和视图渲染](layouts_and_rendering.html) 本篇介绍 Action Controller 与 Action View 基本的版型功能,包含了渲染、重定向、使用 `content_for` 区块、以及。 [Action View 表单帮助方法](form_helpers.html) 本篇介绍 Action View 的表单帮助方法。 ### 控制器 [Action Controller 简介](action_controller_overview.html) 本篇介绍 Controller 的工作原理,Controller 在请求周期所扮演的角色。内容包含 Session、滤动器、Cookies、资料串流以及如何处理由请求所发起的异常。 [Rails 路由全解](routing.html) 本篇介绍与使用者息息相关的路由功能。想了解如何使用 Rails 的路由,从这里开始。 ### 深入 [Active Support 核心扩展](active_support_core_extensions.html) 待翻译 本篇介绍由 Active Support 定义的核心扩展功能。 [Rails 国际化 API](i18n.html) 本篇介绍如何国际化应用程序。将应用程序翻译成多种语言、更改单复数规则、对不同的国家使用正确的日期格式等。 [Action Mailer 基础](action_mailer_basics.html) 本篇介绍如何使用 Action Mailer 来收发信件。 [Active Job 基础](active_job_basics.html) 本篇提供创建背景任务、任务排程以及执行任务的所有知识。 [Rails 程序测试指南](testing.html) 原文撰写中 本篇介绍 Rails 里的单元与功能性测试,从什么是测试,解说到如何测试 API。 [Rails 安全指南](security.html) 本篇介绍网路应用程序常见的安全问题,如何在 Rails 里处理这些问题。 [调试 Rails 程序](debugging_rails_applications.html) 本篇介绍如何给 Rails 应用程式除错。包含了多种除错技巧、如何理解与了解程式码背后究竟发生了什么事。 [设置 Rails 程序](configuring.html) 本篇介绍 Rails 应用程序的基本设置选项。 [Rails 命令行](command_line.html) 本篇介绍 Rails 提供的 Rake 任务与命令行功能。 [Rails 缓存简介](caching_with_rails.html) 原文撰写中 本篇介绍 Rails 提供的多种缓存技巧。 [Asset Pipeline](asset_pipeline.html) 本篇介绍 Asset Pipeline。 [在 Rails 中使用 JavaScript](working_with_javascript_in_rails.html) 本篇介绍 Rails 内置的 Ajax 与 JavaScript 功能。 [Engine 入门](engines.html) 原文撰写中 待翻译 本篇介绍如何撰写可嵌入至应用程序的 Engine。 [Rails 启动过程](initialization.html) 原文撰写中 本篇介绍 Rails 内部的启动过程。 [Constant Autoloading and Reloading](constant_autoloading_and_reloading.html) This guide documents how constant autoloading and reloading work. ### 扩展 Rails [新建 Rails Plugins 的基础](plugins.html) 原文撰写中 待翻译 本篇介绍如何开发 Plugin 来扩展 Rails 的功能。 [Rails on Rack](rails_on_rack.html) 本篇介绍 Rack 如何与 Rails 整合,以及如何与其他 Rack 组件互动。 [客制与新建 Rails 产生器](generators.html) 待翻译 本篇介绍如何加入新的产生器、修改 Rails 内建的产生器。 [Rails 应用程式模版](rails_application_templates.html) 待翻译 本篇介绍如何使用应用程式模版。 ### 贡献 Ruby on Rails [贡献 Ruby on Rails](contributing_to_ruby_on_rails.html) 待翻译 Rails 不是“某个人”独有的框架。本篇介绍如何参与 Rails 开发。 [API 文件准则](api_documentation_guidelines.html) 待翻译 本篇记录了撰写 API 文件的准则。 [Ruby on Rails 指南准则](ruby_on_rails_guides_guidelines.html) 待翻译 本篇记录了撰写 Ruby on Rails 指南的准则。 ### 维护方针 [维护方针](maintenance_policy.html) Ruby on Rails 目前官方支持的版本、何时发布新版本。 ### 发布记 [升级 Ruby on Rails](upgrading_ruby_on_rails.html) 待翻译 本篇帮助您将程序升级至最新版本。 [Ruby on Rails 4.2 发布记](4_2_release_notes.html) Rails 4.2 的发布记。 [Ruby on Rails 4.1 发布记](4_1_release_notes.html) Rails 4.1 的发布记。 [Ruby on Rails 4.0 发布记](4_0_release_notes.html) 待翻译 Rails 4.0 的发布记。 [Ruby on Rails 3.2 发布记](3_2_release_notes.html) 待翻译 Rails 3.2 的发布记。 [Ruby on Rails 3.1 发布记](3_1_release_notes.html) 待翻译 Rails 3.1 的发布记。 [Ruby on Rails 3.0 发布记](3_0_release_notes.html) 待翻译 Rails 3.0 的发布记。 [Ruby on Rails 2.3 发布记](2_3_release_notes.html) 待翻译 Rails 2.3 的发布记。 [Ruby on Rails 2.2 发布记](2_2_release_notes.html) 待翻译 Rails 2.2 的发布记。 ### 反馈 欢迎帮忙改善指南质量。 如发现任何错误,欢迎修正。开始贡献前,可先行阅读[贡献指南:文档](http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#contributing-to-the-rails-documentation)。 翻译如有错误,深感抱歉,欢迎 [Fork](https://github.com/ruby-china/guides/fork) 修正,或至此处[回报](https://github.com/ruby-china/guides/issues/new)。 文章可能有未完成或过时的内容。请先检查 [Edge Guides](http://edgeguides.rubyonrails.org) 来确定问题在 master 是否已经修掉了。再上 master 补上缺少的文件。内容参考 [Ruby on Rails 指南准则](ruby_on_rails_guides_guidelines.html)来了解行文风格。 最后,任何关于 Ruby on Rails 文档的讨论,欢迎到 [rubyonrails-docs 邮件群组](http://groups.google.com/group/rubyonrails-docs)。