This course teaches the basics of Rails development. Rails is a framework for developing database enabled web applications quickly and easily. In this course, we assume that you already have a knowledge of Ruby.
The course is divided into three units. In unit 1, we'll look at how Rails is organized. We'll talk about the Model / View / Controller design pattern and how Rails implements it, and how to create a very simple “Hello world” application in Rails. We'll also look at creating an application using a scaffold, and create a simple app to track contacts and phone numbers.
Unit 2 will dive deeper into Rails, and create our contacts app from scratch, starting with a simple controller and view Along the way, we'll learn about resources and creating a model for the app, as well as view to add a contact and show the most recently added contact.
In Unit 3, we'll finish up the application by creating actions and view to allow the user to show all contacts, and edit and delete them as well. We'll also look at creating links between views that tie the application together.
I hope you enjoy the course as much as I've enjoyed writing it.
Topics covered:
Unit 1
Intro to Rails
Getting Rails on your computer
Model / View / Controller
Creating a new Rails app
The directory structure
Hello, Rails
Creating an app with a scaffold
A simple scaffold-based contacts app
Unit 2
Creating controllers
Action methods map to views
Creating views
Embedding Ruby in HTML
Creating resources
Creating a model
Adding a new contact: the new action
Adding the contact to the database: the create action
Showing the contact: the show action
Unit 3
Showing all contacts: the index action
Editing a contact: the update action
Deleting a contact: the destroy action
Linking from the home page to the contacts index
Linking up all the actions from the index page