This course has been retired.


Rails Best Practices


Go to Replacement Course

Course Overview

  1. Level 1 on Rails Best Practices

    Level 1 1 Video | 6 Challenges
    Controllers in Space

    Fat model/skinny controller, named scopes, scopes with lambda, default scopes, model creation scopes, skipping a filter

  2. Level 2 on Rails Best Practices

    Level 2 1 Video | 7 Challenges
    Controller Command

    Nested attributes, models without the database, using Presenters, rejecting SQL injection, Rails 3 responder syntax

  3. Level 3 on Rails Best Practices

    Level 3 1 Video | 6 Challenges
    Model Pitfalls

    Basic & compound indices, protecting your attributes, using default database values, using callbacks properly, improving validation, database seeding

  4. Level 4 on Rails Best Practices

    Level 4 1 Video | 7 Challenges
    Model Bert

    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

  5. Level 5 on Rails Best Practices

    Level 5 1 Video | 6 Challenges
    Froggy Views

    Refactoring views, using helpers, rendering content with partials, handling empty strings, using content_for, meta yield

Completed Rails Best Practices

Complete these levels to unlock

Course Completion Badge


Recommended Prerequisites

About The Professors

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 is a software developer who is constantly looking for better ways to write code. When not making loud noises on his mechanical keyboard, he can be found rock climbing or playing music.

View Full Credits

Course Notes

  • Estimated Course Length: 4 - 5 hours
  • This course focuses on techniques applicable to Rails 3.0.x

Course Reviews (138)


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.


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).


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!


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.