eval / rack-pjax

pjax for rails and rack applications
http://rack-pjax.herokuapp.com/
MIT License
205 stars 65 forks source link

yield :sidebar doesn't work #7

Open 7akimz opened 12 years ago

7akimz commented 12 years ago

I have added the data-pjax-container attribute to the normal yield and it works fine, but when i add the data-pjax-container attribute on the div wrapper that wrap the yield and yield :sidebar, the :sidebar just disappears. Further notice that the sidebar content changes and if keep it on the attribute on the body yield the sidebar won't disappears, but its content doesn't change

eval commented 12 years ago

Do you have any code that demonstrates the issue? (even better: a failing test)

7akimz commented 12 years ago

In the layout i've a <% yield :sidebar %>, in any of my views like "teams/show.html.erb". i've <% content_for :sidebar, render :partial => 'side_menu' %>. For now i have used a workaround to fix this issue, but i think it is the same thing with the title. it needs to be pulled out of the response. i don't know if this hypothesis is correct. it would be helpful to know how to fix this or is it that i'm doing something wrong.