Update rails, removed unused functions