ruby开发培训课程
课程长度:
2 天/12 小时
课程简介: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
-
- Rendering the View
- Adding a Static Page
- Dynamic Pages with Embedded Ruby
- Using the render Method
- Using the link_to Method
- Rails and HTML Forms
- A Basic HTML Form
- Processing an HTML Form
- Working with Form Data
- Other Form Elements
- Form Tag Helpers
- 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
Generating a Controller
- Creating a Rails View of a Database Table
- Scaffolding
- RESTful Routes and Resources
- Form Helpers and Validation
-
- Introduction
- Form Helpers and form_for
- Processing Form Helpers
-
- 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
- Adding Style to an Application
- Styling
- Rails and Sass
- Cascading Style Sheets
- Users
- Introduction
- Configuring an Application for Sessions
- Registering Users
From Form to Database
-
- The Register Action
- The flash Hash
- Validating the Registration
- Logging in
-
- Logging Out
- Protected Pages
- Filters
-
- 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
Putting It All Together
-
- Summary
ꄘ浏览量:0