Learn Rails best practices with the most useful Rails patterns and techniques. If you're a Rails developer, consider this your new Rails programming playbook.
Course Overview
Controllers in Space
1 Video - 6 Challenges
Fat model/skinny controller, named scopes, scopes with lambda, default scopes, model creation scopes, skipping a filter
Controller Command
1 Video - 7 Challenges
Nested attributes, models without the database, using Presenters, rejecting SQL injection, Rails 3 responder syntax
Model Pitfalls
1 Video - 6 Challenges
Basic & compound indices, protecting your attributes, using default database values, using callbacks properly, improving validation, database seeding
Model Bert
1 Video - 7 Challenges
Optimizing n+1 queries, using counter_cache, batches of find_each, applying The Law of Demeter, using to_s and to_param in the model
Froggy Views
1 Video - 7 Challenges
Refactoring views, using helpers, rendering content with partials, handling empty strings, using content_for, meta yield
Course Prerequisites
- Intermediate/Advanced Ruby/Rails Knowledge
- Rails for Zombies 2
The Professors
Gregg Pollack
Gregg is passionate about taking complex topics and teaching them efficiently. He's helped build Envy Labs, Starter Studio, and Code School. He also furthers education through BarCamp in Orlando, the Orlando Ruby Users Group, and the Orlando Tech Events newsletter.
Carlos Souza
Carlos (Caike) is a software developer who is constantly looking for better ways to write code. When he is not staring at his text editor with white fonts on black backgrounds, he enjoys rock climbing and playing guitar.
Enroll yourself or your team in Code School and get unlimited access to all courses, Code TV screencasts, build your report card, and more.
138 Reviews
-
theIV
I'm only starting to transition to Rails 3, but this was a great refresher on some old stuff, as well as an introduction to some things I had no idea even existed. All of that is an aside from mentioning that the quality of the videos & challenges is hard to beat. Keep up the great work.
-
jvancleef
The Ruby/Rails community has needed training material to stand between "brand-new" tutorials and the advanced discussions at conferences and in blog posts- Rails Best Practices hits that mark perfectly, and I'm certain I'll be referring back to the material frequently. Every unit had techniques I hadn't used before (and often highlighted my habits in the 'bad' practices parts).
-
zindelo
The Ruby Best Practices course is impressive. There are a ton of illusive gems that fill in the missing pieces of routine learning. The course rounds out your skills as a RoR developer. Thanks for the great work!
-
Stammy
I've been doing rails for a while but am just catching up to speed on Rails 3. This course did that and helped me fix some of my dirty rails practices. Videos were easy to follow along and reference while doing the challenges. Definitely, definitely worth the money. Props to Gregg et al.