Holiday Side Project

Geek Mama 2013-01-02

Since I’ve been wanting to try out CanCan and Twitter Bootstrap this holiday, I spent a few hours creating a silly game called Recycled or Not.

My app was generated with Rails Apps Composer. The rails_apps_composer gem installs a command line tool to assemble a Rails application from a collection of fully-tested “recipes.”

It’s too bad that there isn’t a recipe utilizing MiniTest. And the feature tests use Cucumber which has fallen out of fashion around here of late. But other than that, I really loved using this tool because it allowed me to get started with the features of my project in a snap.

In addition, I enjoyed working with Devise, Rolify and CarrierWave. But I think my favorite discovery was that the load_resource method from Cancan will set up a before filter in your controllers which loads the model resource into an instance variable for you. Love that!