Advanced Active Record Techniques: Best Practice Refactoring
This talk will cover several of the more advanced Active Record features by presenting extensive code samples and walking the audience through a best practice refactoring of that code, using the tools given to us by Active Record in the most effective manner (the ‘Rails way’). Some of the topics that these refactoring examples will touch on include
- Moving complexity and logic from Controllers and Views into Models
- Common domain patterns (authorization, polymorphic associations, etc)
- Effective use of Callbacks and Observers
- Correct use of validations
- Custom getters and setters
- Introspection
- Various ways of extending Active Record
- Packaging your extensions as plugins and gems
People planning to attend this session also want to see:
Chad Pytel
thoughtbot, inc.
Chad Pytel is president of thoughtbot, inc. a web application development firm which focuses exclusively on Ruby on Rails. He is also co-author of “Pro Active Record: Databases with Ruby and Rails”, published by Apress, and he publishes, along with the rest of the team at thoughtbot, the blog GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS.











