Line changes help Rams top Ridgefield