Modify router and application.html.erb for router loadChart function