Setup rails.