Add rails_best_practices & change code