Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yield :sidebar doesn't work #7

Open
7akimz opened this issue Jan 12, 2012 · 2 comments
Open

yield :sidebar doesn't work #7

7akimz opened this issue Jan 12, 2012 · 2 comments

Comments

@7akimz
Copy link

7akimz commented Jan 12, 2012

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
Copy link
Owner

eval commented Jan 23, 2012

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

@7akimz
Copy link
Author

7akimz commented Jan 23, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants