About the course
This Ruby on Rails course explains how to use Ruby on Rails to create dynamic websites. After completing this training course, you would be able to use Ruby on Rails on your projects. This course covers a range of topics such as Rails framework, ActiveRecord, MVC, Building Database driven Ruby applications, creating a content management system (CMS), developing contact us forms, developing web forms and handling form data using Ruby on Rails and lots more.
ideal for
To all programmers who want to acquire skills in Ruby on Rails.
Objectives
At the end of this course, students will be able to:
Understand the Rails Framework
Use ActiveRecord
Use Ajax in Rails applications
Deploy Web applications to Application / Web servers (e.g. tomcat)
Work with Object-oriented principles and MVC
Use Ruby for e-business applications.
Build dynamic database-driven web sites.
Prerequisite Knowledge
Students must have skills in Object Oriented Programming
Course Program
PART 1: RUBY PROGRAMMING LANGUAGE
INTRODUCTION TO RUBY ON RAILS
What is Ruby Programming Language
Ruby on Rails web application framework
Example of Rails Apps
History of Rails
Model
View
Controller
Ruby background
Ruby installation and documentation
TOOLS
RUBY PROGRAMMING BASICS
Working with different datatypes
Defining Constants
Using Operators
Expressions
Strings, symbols, and numbers
Introduction to Arrays
Working with Hashes
Generator and Predicate Ranges
The if Statement
Using the else / elsif Statements
Using the unless Statement
Understanding Modifiers
The case Statement
Loops and conditional expressions
While & Until loops
Methods and Arguments
PART 2: RUBY ON RAILS FRAMEWORK
RAILS INTRODUCTION
The Architecture
the Model-View-Controller pattern
Rails project structure
Scaffolding for jumpstart
Putting Ruby on Rails
Creating a Controller / an Action / a View
Adding HTML in The View
Passing Data from an Action to a View
Using Sessions
Accessing user data via form controls
Using data in Controls
Working with Modules
Applying Controls to Modules
Rails Application Directory
Server Script
Console Script
RUBY OBJECT ORIENTED PROGRAMMING (OOP)
Create a Class
Constructor and destructor
Objects
Classes
Core Ruby
Common Standard Library Classes
Scope
Blocks
Modules
fields & methods
access control like public, protected, private
class variables
Ruby inheritance
Polymorphism
Garbage collection
Exceptions and flow control
RUBY ON RAILS SCAFFOLDING
What is Scaffolding
Modifying Scaffolding
RUBY ON RAILS CONTROLLERS
What are Controllers
Routing
URL Generation
Cookies
Sessions
Talking Between Actions
Filters
RUBY ON RAILS VIEWS
What are Views
RHTML
Pagination
Layouts
Partial Page Templates
HANDLING FORM VIEWS
PART 3: RUBY ON RAILS WITH DATABASE
MODELS & RUBY DATABASE
Database access using Active Record
Query your data using the query language in Active Relation
Use validations and callbacks to enforce data integrity
building databases for ActiveRecord
Creating ActiveRecord models
Attributes
Date-Time Fields
Primary Keys
Model Relationships
One-to-One 1-1 Relationships
One-to-Many 1-n Relationships
Many-to-Many n-n Relationships
Basic Searches
Advanced Searches
Table-naming conventions
Displaying data from the database
Connecting to a database
Create and Name the Model and Controller
Adding & Editing records to the database
PART 4: ADVANCED RUBY ON RAILS
AJAX WITH RAILS
AGILE RAILS DEVELOPMENT
Rails conventions
Create web apps using an iterative (agile) development style
Agile coding practices such as refactoring, DRY, and so on
TESTING RUBY ON RAILS APPLICATIONS
Rails testing units
Testing Models
Testing Controllers
Security in Rails
RUBY ON RAILS SECURITY
Overview
SQL Issues
CSS Issues