logo

Development Course

course overview

Click to View dates & book now

Overview

In this course, you will learn how to write database-backed web applications using the Ruby on Rails (RoR) framework.

Audience

Each participant will leave with a recognised certificate

Outline

  • 1. An Overview Of Ruby On Rails
  • What is Ruby on Rails?
  • Downloading Rails
  • A Rails Application
  • Structure of a Rails Application
  • Building the Controller
  • Views
  • A Quick Review
  • Rails Conventions
  • Embedded Ruby
  • Extended Time Functions
  • The render Method
  • The link_to MethodOne Last Thought

Session 2: Fill in Forms

  • Introduction
  • Creating a Form
  • Submitting a Form
  • Other Form Elements - Checkboxes
  • Radio Buttons
  • Rails Helper Methods
  • Loading the Form
  • Submitting the Form
  • Perspective

Session 3: Databases and Rails

  • Review of MVC
  • Entities and Relationships
  • Databases and Models
  • database.yml
  • Adding the Model
  • Migrations
  • The Index Page
  • The Ruby Console
  • Listing the Rows of a Database Table
  • Scaffolding

Session 4: Validation Techniques

  • form_for
  • Data Validation
  • Required Fields
  • Validating Numerical Fields
  • Validating Uniqueness
  • Validating Lengths
  • Validating Formats
  • Writing Your Own Validation Methods
  • The errors Object
  • Validation Summary

Session 5: Style

  • Adding Style to Your Application
  • The Actions and the Templates
  • Displaying the New Templates
  • Higher Level Templates
  • Adding Style
  • Cascading Style Sheets
  • More Style

Session 6: Users

  • Maintaining State
  • Preparing an Application for Sessions
  • Registering Users
  • Registration
  • The flash Hash
  • Validation of the Form
  • Logging In
  • Logging Out
  • Protected Pages
  • Filters

Session 7: Putting it All Together

  • The Business Application
  • Database Terminology
  • Linking Two Models
  • Adding Tasks
  • The Database Tables
  • Displaying an Employee Task
  • Deleting a Task
  • Listing Both Employees and Tasks
  • application_helpers.rb
  • Editing a Record
  • Summary

Session 8: Testing the Application

  • Test::Unit
  • Testing Your Own Classes
  • Testing in Rails - Unit Testing
  • Testing Models
  • Fixtures
  • Testing Controllers
  • test_helper.rb
  • rake
  • Integration Testing

Talk to an expert

Thinking about Onsite?

If you need training for 3 or more people, you should ask us about onsite training. Putting aside the obvious location benefit, content can be customised to better meet your business objectives and more can be covered than in a public classroom. Its a cost effective option. One on one training can be delivered too, at reasonable rates.

Submit an enquiry from any page on this site, and let us know you are interested in the requirements box, or simply mention it when we contact you.

All $ prices are in USD unless it’s a NZ or AU date

SPVC = Self Paced Virtual Class

LVC = Live Virtual Class

Please Note: All courses are availaible as Live Virtual Classes

Trusted by over 1/2 million students in 15 countries

Our clients have included prestigious national organisations such as Oxford University Press, multi-national private corporations such as JP Morgan and HSBC, as well as public sector institutions such as the Department of Defence and the Department of Health.