Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: mattvleming
I had the same issue however raising the timeout delay did not work for me. What I found though was the initial PJAX request was rendering the application layout, so I found this fix. In other words I added this:
# your code here
render layout: false if request.headers['X-PJAX']
I haven't figured out why the initial PJAX request was rendering my application layout, which is weird especially given that when I make PJAX requests to all my other pages the same behaviour does not occur.
Hope that helps someone though. :)
I had the same question, isn't the object_id already unique? Thank you for writing your comment, I didn't even have to write out the code to find out for myself.