using the gon gem instead of making an ajax call