Ruby on Rails Cheat Sheet

If you are a Rails programmer you know how important Gems are and how easy they can make it to bootstrap your website without caring about the basic modules and functions that most websites need anyways.

This article will give you a list of Gems that I use when developing a rails application. There are often different gems that do the same thing so this list does not claim to be complete or the best option. You are welcome to send me some of your favorite Gems and I will be happy to extend the list.


Rails admin is my tool of choice for backend data administration:


Mailcatcher is a handy tool for checking your email functionality and layouts locally:


Whenever is my tool of choice for creating cron jobs and recurring tasks in rails:


Bitmasks come in handy if you are trying to implement things like roles or overlapping attributes:


Statemachines come in handy if you want to depict states and events for your application flow:


Chartkick is my tool of choice for displaying charts:

Access Management

Cancancan is a authorization library for rails. I use it to restrict access to certain resources:


I use i18n-debug to find out about the translation keys generated and used in my app:


Set Debug points and iterate through your code with pry-byedebug:


RSpec is my Gem of choice for behaviour driven tests in Rails:

File Upload

I use carrierwave for file uploads in rails:


Forms made easy with simple form:


A simple way to add tags to your models:


Capistrano is a deployment automation tool for Rails:


Devise is a flexible authentication solution for rails:

If you have any other suggestions to extend the list feel free to send me a tweet to @behsaad or an email to

comments powered by Disqus