Applied two gems and code in application js to get bootstrap to work. Also fixed the route structure.