Ruby on Rails开发培训课程

ruby on rails开发培训课程

课程简介:
Ruby on Rails开发培训课程介绍如何运用Ruby on Rails框架(RoR,或简称Rails)编写数据库支持的Web应用程序。学生将学习创建一个完整的Web应用程序的各个步骤,培训内容包括MVC范例,对象关系映射,表单、会话、验证技术、测试以及其他各种Rails的主题。

培训对象:
需要编写Rails应用程序或评估Rails框架的开发人员、系统管理员或IT经理。

预备知识:
学生已经学习过或熟悉Ruby编程语言、SQL数据库。了解HTML。
有关Ruby开发培训,请查看:Ruby开发培训课程

培训内容:
1. An Overview of Ruby on Rails

  • What is Ruby on Rails?
  • Overview of Rails Components
  • Installing Rails
  • A Simple Rails Application
  • Starting the Rails Server
  • Static Pages Within a Rails Application
  • The Structure of a Rails Application
  • Generating a Controller
  • Rendering the View
  • Adding a Static Page
  • Dynamic Pages with Embedded Ruby
  • Using the render Method
  • Using the link_to Method

2. Rails and HTML Forms

  • A Basic HTML Form
  • Processing an HTML Form
  • Working with Form Data
  • Other Form Elements
  • Form Tag Helpers

3. Databases and Rails

  • Review of the MVC Architecture
  • Entities and Relationships
  • Databases and Models
  • Rails Database Conventions
  • Adding a Model
  • Database Migrations
  • The Rails Database Console
  • Creating a Rails View of a Database Table
  • Scaffolding
  • RESTful Routes and Resources

4. Form Helpers and Validation

  • Introduction
  • Form Helpers and form_for
  • Processing Form Helpers
  • From Form to Database
  • Redirection
  • Data Validation
  • Validation Helpers
  • The presence Validator
  • The numericality Validator
  • The uniqueness Validator
  • The length Validator
  • The format Validator
  • Custom Validation Methods
  • The errors Object
  • Displaying Validation Errors in the View

5. Adding Style to an Application

  • Styling
  • Rails and Sass
  • Cascading Style Sheets

6. Users

  • Introduction
  • Configuring an Application for Sessions
  • Registering Users
  • The Register Action
  • The flash Hash
  • Validating the Registration
  • Logging in
  • Logging Out
  • Protected Pages
  • Filters

7. Putting It All Together

  • Introduction
  • The Business Application
  • Database Terminology
  • Linking Two Models
  • Adding Tasks
  • The Database Tables
  • Displaying Employee Tasks
  • Deleting a Task
  • Listing Employees and Tasks
  • Migrations
  • Editing a Record
  • Summary

培训天数:
2天

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注