unpopulated in_place_editor_field not working [UPDATED] Easier, cleaner workaround!

I’m running Rails 2.2, and have spent waaaay too long unsuccessfully trying to get the suggestion at http://www.akuaku.org/archives/2006/08/in_place_editor_1.shtml

to work for me. I also considered trying a few other suggestions I found, but they all felt kludgy.

Then a CSS lightbulb went off over my head! I added this to the top of the template where I needed a bunch of these blank in_place_editor_fields to work:

.in_place_editor_field:after { content: url(/images/edit_entry_12.png) }

WOOOHOOO! It totally works, and doesn’t look too gross.

David Rose