Rails: Use same partial for creating and editing nested items
问题 I followed the Getting Started With Rails tutorial to set up a simple blog with comments. I went to apply it to my own scenario: histories with history items. Everything was more or less fine until I realized that I needed to have the ability to edit these history items (kind of like editing comments). I've got it so there's an "Edit Item" link on the partial that displays the history items. It seems to hit the edit action in the history items controller. But I get a form with blank fields