Sign in through GitHub

RailsCasts Pro episodes are now free!

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.