DRY up your Rails code using with_options
If you don’t know about Rails’ with_options method, chances are you’ve got some nasty duplication in your codebase.
Check out this 11-minute screencast for a walkthrough of this handy method and its implementation.
When it’s done, you’ll have learned about a useful method, and been exposed to some quality Ruby code and techniques by studying its implementation.
Comments
Computer says… no…..
Post a comment