Course Description

This 2-day Ruby on Rails training course describes how to write database-backed Web Applications using the Ruby on Rails (also pronounced RoR, or Rails) Framework. Students are taken through the various steps of creating a fully-fledged Web Application. Topics include the MVC paradigm, object-relational mapping, fill-in forms, sessions, validation techniques, testing, and various other Rails topics.


Familiarity with the Ruby Programming language through attendance at our Ruby Programming Introduction training course, or equivalent experience. Familiarity with at least one RDBMS (e.g. Oracle, MySQL, MS-SQL Server) and the SQL query language (SQL Fundamentals of Querying) as well as an understanding of HTML (HTML4 Introduction).

Who is this course for?

Developers, system administrators, or managers who need to write a Rails application or evaluate a Rails framework.

Further Training

Course content

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
Rails & HTML Forms
A Basic HTML Form
Processing an HTML Form
Working with Form Data
Other Form Elements
Form Tag Helpers
Databases & Rails
Review of the MVC Architecture
Entities & Relationships
Databases & Models
Rails Database Conventions
Adding a Model
Database Migrations
The Rails Database Console
Creating a Rails View of a Database Table
RESTful Routes & Resources
Form Helpers & Validation
Form Helpers & form_for
Processing Form Helpers
From Form to Database
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
Rails & Sass
Cascading Style Sheets
Configuring an Application for Sessions
Registering Users
The Register Action
The flash Hash
Validating the Registration
Logging in
Logging Out
Protected Pages
Putting It All Together
The Business Application
Database Terminology
Linking Two Models
Adding Tasks
The Database Tables
Displaying Employee Tasks
Deleting a Task
Listing Employees and Tasks
Editing a Record