updated to rails