You are viewing a read-only archive of the Blogs.Harvard network. Learn more.

Holiday Side Project

January 1st, 2013

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 the core recipes don’t include MiniTest, although this is a option when creating recipes from scratch. And the core example recipes 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!

Entry Filed under: Professional,Ruby on Rails

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>