fix rails 4 generation