Ruby on Rails, or simply Rails, is a server-side web application framework written in Ruby under the MIT License. Rails is a model–view–controller (MVC) framework, providing default structures for a database, a web service, and web pages. It encourages and facilitates the use of web standards such as JSON or XML for data transfer, and HTML, CSS and JavaScript for display and user interfacing. In addition to MVC, Rails emphasizes the use of other well-known software engineering patterns and paradigms, including convention over configuration (CoC), don't repeat yourself (DRY), and the active record pattern.
Length : 60 Hours
INTRODUCTION
What is Ruby?
Why Ruby?
Sample Ruby Code
Embedded Ruby
What is Rails?
Full Stack Framework
Convention over Configuration
Rails Strengths
FRAMEWORK
Ruby on Rails MVC Framework
Pictorial Representation of MVC Framework
Directory Representation of MVC Framework
DIRECTORY STRUCTURE
DATABASE SETUP
Database Setup for MySQL
Configuring database.
yml Database Setup for PostgreSQL
ACTIVE RECORDS
Translating A Domain Model into SQL
Creating Active Record Files
Creating Associations between Models
Implementing Validations
MIGRATIONS
What Can Rails Migration Do?
Create the Migrations
Edit the Code:
Run the Migration
Running Migrations for Production and Test Databases
CONTROLLER
Implementing the list Method
Implementing the show Method
Implementing the new Method
Implementing the create Method
Implementing the edit Method
Implementing the update Method
Implementing the delete Method
Additional Methods to Display Subjects
RUBY ON RAILS – ROUTES
VIEWS
Creating View File for list Method
Creating View File for new Method
Creating View File for show Method
Creating View File for edit Method
Creating View File for delete Method
Creating View File for show_subjects Method
LAYOUTS
Adding Style Sheet
SCAFFOLDING
Scaffolding Example
Creating an Empty Rails Web Application
Setting Up the Database
The Generated Scaffold Code
The Controller
Enhancing the Model
Alternative Way to Create Scaffolding
The Views
How Scaffolding is Different?
AJAX ON RAILS
How Rails Implements Ajax
AJAX Example
Creating an Application
Creating an Ajax
FILE UPLOADING
Creating the Model
SEND EMAIL
Action Mailer - Configuration
Generate a Mailer
Calling the Mailer