Currently, it seems that for Rails 5.1 we do not have any compatible Fancybox gem Latest Fancybox3 is compatible with rails 5.0 but not 5.1 (https://github.com/fobiasmog/fancybox3/issues/3) .
I am upgrading my application from Rails 4.2.7 version to Rails 5.1.4, I need help to figure out an alternate for Fancybox.