mercredi 21 octobre 2015

Colorbox Rails not working properly

I installed colorbox-rails gem for a Rails 4 project.

  • included gem in Gemfile
  • *= require colorbox-rails (css)
  • //= require colorbox-rails (.js)

But when restart server it gives an error in file jquery.colorbox on this line

$('.' + boxElement, document).live('click', function (e) {

that

Uncaught TypeError: $(...).live is not a function

Aucun commentaire:

Enregistrer un commentaire