RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: ceneon
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 &, and not a javascript string delimitor.
Rails 3 & jQuery here.
Great post anyway !!
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 &, and not a javascript string delimitor.
Rails 3 & jQuery here.
Great post anyway !!