Ruby on Rails for Developers
This course teaches experienced developers Ruby and Ruby-on-Rails. It's designed to be taught by a practicing rubyist and a teaching assistant. Both individuals must have expert understanding of Ruby, Rack and Ruby-on-Rails. The ideal class size is 12-15 students, each having prior application development track record. The lesson plan is conceived as 12 two-hour lectures with homework given after each of the first 6 courses. Assignments are tracked in Pivotal Tracker. Subsequent 6 lectures alternate class material with coding. The course ends with 8 hours of building a final project for obtaining certification.
These materials were developed for General Assembly's class: Ruby on Rails for Developers. To apply to take the next itearation of this class through GA visit: Rails for Dev @ GA
We start by introducing students to the Ruby development environment and show elementary Ruby code. Students also learn how to use Git and exercise the development workflow via Github, including pull requests and topic branches. We dive into Ruby basics and conclude with object-oriented features, mixins and exception handling.
After the class gains enough familiarity with the language features, we teach Rack, an essential foundation of any solid Ruby-on-Rails knowledge. The instructor builds a basic web application that serves static files from the file system with Rack. A Rails application is then assembled from scratch without the use of Rails generators. Tests are written with the default unit test infrastructure, and once again using behavior-driven development with RSpec. The application is deployed on Heroku.
We step aside to teach Ruby meta-programming before lecturing on ActiveRecord, ERB, HAML and SASS. The instructor then builds authentication without using an off-the-shelf library. This combination of technologies gives the students the necessary tools to build a complete project, which is typically introduced around the 6th lecture. When this material was developed we asked the students to build a Ruby-on-Rails clone of the popular Stashboard application.
Final lectures include RESTful APIs with Rails and Grape, an introduction to NoSQL databases with MongoDB. We also recommend you offer students an opportunity to revisit any topic that was insufficiently clear or lecture on a topic that they are curious about.
- Introduction: Getting Started
- Lecture 1: Developer Workflow
- Lecture 2: Ruby Basics
- Lecture 3: Rack
- Lecture 4: Rails MVC
- Lecture 5: RSpec
- Lecture 6: Ruby Meta-Programming
- Lecture 7: ActiveRecord
- Lecture 8: Rendering in Rails
- Lecture 9: Authentication
- Lecture 10: RESTful API
- Lecture 11: NoSQL with MongoDB
- Lecture 12: Caching
This course is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License. It may be reused and adapted for non-commercial purposes. Please contact Matthew Owens at GeneralAssemb.ly for commercial licensing.