Init rails.