I'm using the best_in_place gem with Rails 4. Code is below:

<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>

For some reason the link doesn't open the textarea unless you refresh the page. I'm guessing it's a turbolinks issue?

有帮助吗?

解决方案

have you tried without turbolinks? it's fairly easy to check if that is the problem. if everything works fine without them, try the jquery turbolinks gem. it will make things work better.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top