learn to rebuild the current rails step by step