This week in Rails
Aug 1 2014
Welcome to This week in Rails, your weekly inside scoop of interesting commits, pull requests and more from Rails. Without further to do, let's dive right into the highlights of the week!
Thanks to these 27 (and counting) contributors, the framework we love just learned a few new tricks.
Originally added as Object#self and since renamed to Object#itself to match the upstream proposal, this method does pretty much what you would expect – return itself. Check out the discussion thread on redmine for some example use cases.
If you haven't used it yet, Object#with_options is a convinent way to DRY up your declaritive code. This week, it learned a new trick to remove even more boilerplate code.
Naturally, relative URLs would not work within HTML emails. This pull request attempts to help Rails developers avoid the common mistake of using _path helpers in mailer templates.
For those who need to figure out how to use Active Record with multiple databases, your life just got a bit easier this week with this documentation change.
And that's it for this issue of This week in Rails. As always, there are a lot more changes on Rails than what I can cover in this newsletter, so I encourage you to check them out yourself!
If you have any feedback for me, please feel free to email me or let me know on twitter! Thank you for reading! <3 <3 <3
P.S. Feel free to share this newsletter with your Rails friends!