Removed some basic smells as found by running rails_best_practices . in the top level folder