Web development with Ruby on Rails

Course length: 4 days (32 hours)

This is an introduction to Web development using the Ruby on Rails framework. (It assumes knowledge and familiarity with the Ruby language, including a strong understanding of the Ruby object model.) It uses the latest stable versions of Ruby and Ruby on Rails. Through a combination of lecture and exercises, students are introduced to the MVC paradigm of Web applications, the ActiveRecord object-relational manager, ERb templates, sending e-mail, the use of Ruby gems with Bundler, the asset pipeline, testing with RSpec, and optimization/debugging of Rails applications.

Audience: Programmers with experience in both Ruby and Web development (but not necessarily together) who want to use Ruby on Rails to create Web applications.

  • Introduction to MVC
  • Parts of Rails (ActiveRecord, Action Pack, Active Support, Action Mailer)
  • Installing
  • Drectory structure
  • Gemfile and bundler
  • Environments
  • Generators
  • Logfiles
  • Rails console, dbconsole
  • Controller methods
  • Models and ActiveRecord
  • Migrations
  • find, new, create
  • Parameters
  • Model methods
  • Validations
  • ActiveRecord Callbacks
  • Associations
  • Lazy loading and :include
  • Joins
  • Mixins and ActiveRecord
  • Testing models with RSpec
  • Transactions
  • More complicated responses
  • before and after filters
  • Application controller • Session and Flash
  • REST
  • respond_to
  • Layouts
  • Mailers
  • Helpers
  • Helpers
  • JavaScript/Ajax integration
  • Rake
  • Deploying (Capistrano, Heroku)
  • Caching
  • Popular gems