Overview
This course will expose you to all the basic fundamentals to get started with Ruby. At the end of this Ruby course you will be able to build websites from scratch based on development best practices.
Objectives
At the end of Ruby on Rails training course, participants will
Prerequisites
- Basic Knowledge of Object Oriented Programming language is desired
- Basics of a database such as MySQL
- Front end skills such as HTML/HTML5, Javascript/ jquery, CSS or SCSS or LESS will be an added bonus
Course Outline
- What is Ruby programming language?
- What is Rails?
- Introduction to OOPS
- Understanding Web Application
- Understanding MVC
- Ruby on Rails Installation
- The Rails Application Directory Structure
- Connecting to a Rails Application
- The Rails Request/Response Cycle
- Running Ruby Programs
- IRB (Interactive Ruby)
- Objects and Methods
- Classes
- Strings and Numbers
- Symbols
- Arrays
- Hashes
- Modules
- Control Flow and Conditionals
- Instance Variables and Attributes
- Iterators
- Mixins
- Blocks
- Proc
- Lambda
- Sorting Collections
- Filtering Collections
- ActiveRecord Overview
- Domain Modeling, Ruby, and Rails
- Programming the Domain
- Creating the Database Tables
- The Rails Application Console
- Creating and running a Rails application
- Directory Layout
- Creating Quick application via Scaffolding
- Scaffold Workflow
- MVC files
- Manual creation
- HTML Review
- Layout integration
- Bootstrap Layout Integration
- Form helpers
- SQL Review
- Ruby’s Test Framework
- From Minitest to Rails Testing
- Functional Tests
- Validating ActiveRecord Objects
- The Role of the Controller in Validating Data
- Examples of Selected Validation Methods
- ActionPack, the Composite Library
- Custom Helper Methods
- Partial Templates
- The Session Hash
- Controller Filters
- Differential Responses
- XML with Builder