arriving in unison with that pioneer spirit , the industrial revolution brought with it substantial public works projects in the vein of the erie canal and innovating inventionsthe cotton gin , the telegraph , and the railroadthat helped connect and divide the nation .