gregbell/active_admin — pull request #1789 by danielwestendorf (2012-11-27 21:46:22+00:00)
Title: 30b36e9 implemented incorrectly, this should resolve the issue

Commit 30b36e9 makes a change the effectively creates input fields with unique names. The problem is that the `placeholder` string has spaces in it. Thus, when a JS replace is called on the newly inserted field, the ID is not updated correctly. As a result, multiple input fields have the same ID.

This commit simply splits the string by spaces and replaces them with underscores. There may be a better solution for this though.