Add rails_best_practices and fixed issues