RailsCasts Pro episodes are now free!

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)
});