850. Introduction to Ruby on Rails
Learn foundational Ruby and the theory and practice of Rails in this hands-on course.
The instructor will coach you in Ruby language constructs and the entire Rails development stack: domain
modeling with ActiveRecord, controller and view implementation, testing, database migrations, data validation
techniques, AJAX fundamentals, etc. Students will learn how to install, to program in Ruby and use Ajax in
Ruby on Rails applications.
Prerequisites:
To
get the most out of the Introduction on Ruby on Rails course, you should have a solid
understanding of HTML.
1.
Rails Fundamentals
Rails overview and walkthrough
The Model-View-Controller framework architecture
Creating a new Rails application
Rails request-handling and URL parsing
Development-mode deployment
Generating models and controllers
2.
Basic Ruby Skills and Tools
Objects and methods
Scalars: strings, numbers, dates and times
Collections: arrays, hashes
Classes and modules
Control flow and conditionals
Interactive Ruby (IRB)
Attributes
Iterators
Exception and error-handling
3.
Database Creation and Configuration
Basic MySQL creation commands
Configuring database.yml
Automatically-generated migrations
Custom migrations
4.
Working with ActiveRecord
Modeling a domain
ActiveRecord models and Ruby classes
ActiveRecord associations
Writing Rails-friendly SQL
Data validation techniques
5.
ActionView Essentials
RHTML templates
Embedded Ruby (ERb)
Partial templates
Built-in and custom helper methods
Layouts
6.
Using ActionController
The session and flash facilities
Planning and writing actions
Controller/view communication via instance variables
The special params hash
Filter methods for specific actions
Redirecting actions
Explicit rendering commands
7.
Working with Forms in Rails
ActionPack form helper methods
"Magic" form-field population
Processing forms
Hash-based batch processing of CGI data
8.
Session management and security
The session hash
Password deployment and encryption
Avoiding SQL injection
9.
Testing in Ruby and Rails
Ruby's Test/Unit framework
Writing fixtures
Unit tests
Functional tests
Integration tests
10.
Ajax, JavaScript, and RJS
JavaScript facilities and support in Rails
Basic DOM updating with Ajax calls
RJS templates
Graceful degradation of Ajax