best in place gem 仅在单击数据时才可编辑,当用户单击该特定 td 中的任何位置时如何启用编辑

best in place gem becomes editable only when clicked on the data , how to enable editing when the user clicks anywhere in that particular td

我在 table 中使用最佳就地 gem 进行就地编辑。它工作得很好,但只有在单击数据时,列字段才会变为 editable。我希望它在该列区域中的任何位置单击时成为 editable 。

此外,我如何提供一些样式来指示用户列字段是 editable?

我已经通过将 css 应用到方法提供的最佳位置 class 来解决这个问题 :)