tried the gon gem thing , fixed the link_to sii, still does not work
removed (commented out) the gon gem from gemfile, also the d3 spectrum now appears by using the on function instead of click function but the page automatically scrolls to top, wtf