RailsCasts Pro episodes are now free!

Learn more or hide this

jihao's Profile

GitHub User: jihao

Comments by

Avatar

Which post that you mentioned here?

I meet the same problem, removed h() and get fixed

ruby
def link_to_add_fields(name, f, association)
 ...
 ...
 link_to_function(name, "add_fields(this, '#{association}', '#{escape_javascript(fields)}')")
end