
Plugins are the approved way to add custom features to Rails or even modify its built-in behavior.
This 100 page PDF book walks through common techniques for augmenting models, views, controllers and routes. You’ll also learn about the important parts of a generator, all in ways compatible with Rails 2.
If you’ve wanted to write an acts_as plugin or if you’ve wondered what alias_method_chain really does, this is the book for you.
Only US$9, or available to PeepCode Unlimited members immediately!


General knowledge of Rails is assumed.
Revision 1 (Notes) · Created: Feb 29, 2008 · Length: 100 pages · 1 MB
“Bought the [Plugin Patterns] PeepCode PDF...and I gotta say I'm loving it. It's very well written, and you explain complicated nasty stuff with nice simple examples.” Chris O'Sullivan
“The Peepcode on Plugin Patterns is the best I've seen in a while.” Pat Nakajima
“Thanks for the outstanding work on the Plugin Patterns piece. This has bumped up my efficiency and knowledge tremendously. Looking forward to the next one! ” David Baldwin
“Even if you are not planning to write a Rails plugin, you should absolutely check this book, there are great insights about how Rails works and you will figure out that building a plugin is as easy as anything in Ruby, it’s just a matter of knowing where to place your code.” Codevader Blog
“PeepCode is awesome!” Tim O'Reilly, O'Reilly Media
“These things are fantastic and the price is a steal. I strongly urge you to support this effort and buy the episodes. What a terrific way to learn!” Scott Barron, Rails Core Committer
“[The] git PeepCode book is awesome. Congrats on a job very well done. This should be required reading for all git users.” Jamis Buck, Rails Core Alumnus
“It was refreshing to read about git from the bottom up, and not compared to SVN. I was at the stage where I could do most of the basic tasks I used to do in SVN, but lacked a fundamental understanding of how it was working under the hood...Understanding all those concepts really helped me grok why the higher level commands and workflows work the way they do, and how to avoid some of the pitfalls.” James, in blog comment
“Even if you are not planning to write a Rails plugin, you should absolutely check this book, there are great insights about how Rails works and you will figure out that building a plugin is as easy as anything in Ruby, it’s just a matter of knowing where to place your code.” Codevader Blog
Login or signup and enter the code on your account page. If it is still valid you will be able to browse the list of products and redeem an episode.