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:
ruby
defindex# your code here
render layout:falseif request.headers['X-PJAX']
end
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.
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.
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:
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.