0

我在best_in_placeRails 4 中使用 gem。代码如下:

<p><%= best_in_place @link, :description, :classes => "summary" ,  :activator => "#edit_summary", :type => 'textarea', :nil => "<span class='none-yet'>There is no summary for this article. Would you like to create one?</span>" %></p>
<a href="#" id="edit_summary">Edit Summary</a>

由于某种原因,除非您刷新页面,否则该链接不会打开文本区域。我猜是turbolinks的问题?

4

1 回答 1

1

你试过没有涡轮链接吗?检查这是否是问题相当容易。如果没有它们一切正常,请尝试jquery turbolinks gem。它会让事情变得更好。

于 2014-01-28T14:49:23.860 回答