fix rails support