
Updated for Rails 2.1
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.1.
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 3 (Notes) · Updated: Apr 13, 2009 · 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
“Your PDF has really inspired me, so it is well worth the money! You can quote me on that ;-)” Morgan Roderick
“Precisely what I needed, precisely when I needed it.” Bill Burcham
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 one!
Save money and learn a lot, too! PeepCode Unlimited gives you access to everything we publish for a full year. A 10 Pack will save you $20 and a 5 Pack will save you $5.
Site licenses and team subscriptions are also available! Contact peepcode@topfunky.com with the number of developers you have and the number of credits you would like to buy and we will send you a personalized quote.
“PeepCode is awesome!” Tim O'Reilly, O'Reilly Media
“I suspect there are a lot of smart DF readers out there who know nothing about the Unix-y aspects of Mac OS X, would like to, but never found a good way to get started. This screencast is it.” John Gruber, Daring Fireball
“Mercurial is just what I was looking for. Happy to pay to support people making such high-quality and informative screencasts.” Jason Kottke
“Absolutely fantastic - I haven't seen a PeepCode screencast before and I'm super impressed with the level of graphics/audio...I just finished it and it really is a great intro. Well done.” David Kaneda, author of jQTouch
“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