RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: RadimBaca
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.
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.