Everyday Rails

Finding the best time-saving gems for your Rails app with Ruby Toolbox

By Aaron Sumner, June 03, 2010.

Rails developers of all skill levels take advantage of a good gem or plugin (or two, or three, or five) to add critical features to apps. There’s no shame in taking advantage of the generosity of others–maybe in addition to DRY we should have DRTWOO (don’t repeat the work of others). In the past, my method of finding the right add-ons consisted of a combination of Google and GitHub’s basic keyword search, then reviewing the candidate projects’ activity history (when was the last commit?) and popularity (how many people are watching it?) to help assess whether it will be a good fit in my application. (It also helps if Ryan Bates has talked about it in Railscasts). Come to find out, there’s a site that takes care of the GitHub part of the search for you.

Ruby Toolbox has been around for more than a year, but somehow I missed it until last week when I was interested in current best practices for adding tagging functionality to an application. I’ve implemented tags several times, but figured how I’d done things in the past might be dated.

My Google search found a page that ranked four tagging projects by a score based on their respective GitHub watchers and forks. Each project’s last commit, total downloads, and downloads of the current version are also listed to help you judge whether a project is solid enough to include alongside your own work.

Ruby Toolbox has also helped me find gems to solve problems I had but didn’t realize I had. For example, I have an app that relies heavily on recurring events. At the moment I have basic code for writing and duplicating events in a calendar-like application (I tell people it’s not a calendar; it’s a data collection system that looks like a calendar). The next time I put my app through a round of updates I’ve got several options to consider for (hopefully) cleaning up my code. Take a look at the list of gem categories to get a top-level view of add-ons for your application–this is a great way to find tools to help get uncommon tasks (say, not authentication or tagging) into your app and out of the way.

Thanks again to those of you who are following Everyday Rails on Twitter or left feedback since I shared a link to the site on RubyFlow. New content is coming next week–look for a series on how I do authentication and authorization in Rails apps to begin.

What do you think? Follow along on on Mastodon or Facebook to let me know what you think and catch my latest posts. Better yet, subscribe to my newsletter for updates from Everyday Rails, book picks, and other thoughts and ideas that didn't quite fit here.

Test with confidence!

If you liked my series on practical advice for adding reliable tests to your Rails apps, check out the expanded ebook version. Lots of additional, exclusive content and a complete sample Rails application.


Ruby on Rails news and tips, and other ideas and surprises from Aaron at Everyday Rails. Delivered to your inbox on no particular set schedule.