Update shortestpath_controller.rb