Since we're in 2011 and using Rails 3.0.4 I thought I'd contribute back this necessary change:
in application_helper.rb, the link_to_add_fields function no longer needs the "h" escape that Rails 2 needed, which surrounded the second argument to link_to_function.
Since we're in 2011 and using Rails 3.0.4 I thought I'd contribute back this necessary change:
in application_helper.rb, the link_to_add_fields function no longer needs the "h" escape that Rails 2 needed, which surrounded the second argument to link_to_function.
link_to_function(name ("add_fields(this, \"{association}\", \"#{escape_javascript(fields)}\")"))