set up rails.