api call working again in rails. changed places controller and places/index.html.erb