jamesgolick/attribute_fu — pull request #4 by chrisbloom7 (2012-11-04 06:50:05+00:00)
Title: Updating #add_associated_link to pass along the :name option along to the new associated form

I know this is an outdated plugin, but we're still using it in some Rails 2.2.x apps. I noticed that the #add_associated_link method accepts a :name option, but it doesn't affect the rendered associated form fields, so if you have an association that specifies a :class_name you would get an error about "unknown attribute: [class_name]_attributes" . This patch just makes sure the name attribute gets passed along.