modify by rails_best_practices