RailsCasts Pro episodes are now free!

Learn more or hide this

ceneon's Profile

GitHub User: ceneon

Comments by

Avatar

I had to change a little the link_to_function call in ApplicationHelper

      link_to_function(name, "add_fields(this, '#{association}', '#{escape_javascript(fields)}')" )

notice the change from \" to ' ... otherwise they would be converted to &amp, and not a javascript string delimitor.

Rails 3 & jQuery here.

Great post anyway !!