RailsCasts Pro episodes are now free!

Learn more or hide this

vsolari's Profile

GitHub User: vsolari

Comments by

Avatar

Para los que estan trabajando con la version 3.2.13 de Rails se debe modificar lo siguiente en el archivo "application.js"

Dice:
function remove_fields(link) {
$(link).previous("input[type=hidden]").value = "1";
$(link).up(".fields").hide();
}

Debe decir:

function remove_fields(link) {
$(link).prev("input[type=hidden]").val("1");
$(link).closest(".fields").hide();
}