fix rails and sh