Rails Best Practices
By: Gregg Pollack | Topics: Web Frameworks and Ruby on Rails
About This Course
The Ruby on Rails framework uses a great deal of convention over configuration, which means that if you follow the golden path and develop in a certain way, you can do away with lots of the configuration involved. Unfortunately, as your system starts to become complex, so can your code. Without proper design patterns and techniques, your codebase can quickly devolve. In this course, we've put together some of the most useful patterns, so you can keep your code clean and maintainable. Warning: This course is for developers who have created at least one full Rails app on their own. It is not meant for beginners.
Course Levels
- Controllers in Space Covers the Fat Model / Skinny Controller pattern and effective use of scoping, and filter.
- Controller Command Effective use of nested attributes; using models without any database attached to them; using effective REST, Presenters, Memoization; and the Rails 3 Responder Syntax.
- Model Pitfalls Get your hands dirty with indexes, protecting your attributes from hackers, setting default values, proper use of callbacks, creating custom validators, and sowing the db seeds.
- Model Bert Writing better queries, using a complex counter cache, using find_each where we need to, learning from our friend Demeter, and using to_s and to_param where we need to.
- Froggy Views Build advanced helper methods and learn about simpler partial methods, empty strings, block helpers, and using yield in all sorts of creative ways you never thought of.
Prizes What's this?
By completing this course you will earn the following prizes:
- 35% off all books at InformIT
- $5 in Code School Cash to use on your next purchase
- A free screencast from PeepCode.com
Reviews
- Star 1
- Star 2
- Star 3
- Star 4
- Star 5
- Star 1
- Star 2
- Star 3
- Star 4
- Star 5
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.
- Star 1
- Star 2
- Star 3
- Star 4
- Star 5
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).
- Star 1
- Star 2
- Star 3
- Star 4
- Star 5
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!
- Star 1
- Star 2
- Star 3
- Star 4
- Star 5
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.