Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

RadimBaca's Profile

GitHub User: RadimBaca

Comments by

Avatar

I do not why, but only
$(link).prev("input[type=hidden]").val("1");

worked for me in a case of the jquery remove_fields(link) function and rails 3.1.3.