best_in_place “:nil” function does not work in AJAX inserted partial
问题 I have a list of records on my page. I submit a form remotely via AJAX and the new record is appended to the list. All best_in_place features immediately work apart from the :nil option. This doesn't display the default value that I set. This makes it impossible to edit the value unless the user refreshes the page. Then the value is present and the user can click. Is this a known bug? Can anyone suggest a work around? Updated with my code: <%= best_in_place_if can?(:update, post), post, :post