Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Pietro Di Bello's Profile

GitHub User: xpepper

Site: xplayer.wordpress.com

Comments by Pietro Di Bello

Avatar

I had the same issue.
I fixed the jquery syntax with this:

ruby
$(link).parent().before(content.replace(regexp, new_id));

instead of the old syntax (prototype I guess)

ruby
$(link).up().insert({  
  before: content.replace(regexp, new_id)
});