I am using rack-pjax gem as described in the railscasts playing with pjax<http://railscasts.com/episodes/294-playing-with-pjax?view=comments> But the issue i am having with my layout is, i have some dynamic generated links and page headings on top of the main ''yield'' call in the application layout. Those links will be generated dynamically based the main yield. Though i am putting the dynamically loaded part in the data-pjax-container, that part is still not coming(being invisible). I guess that is because of the way pjax works, when ever a pjax request goes to the server, it will carry a ''X-PJAX'' header and the server doesn''t load the whole layout if it finds the X-PJAX in the headers. %div{:id = "content", :data => {"pjax-container" => true}} #context_menu = THE DYNAMICALLY GENERATED CONTENT GOES HERE .clear #pageHeading #breadcrumbs = THE DYNAMICALLY GENERATED CONTENT GOES HERE .clear .bodytext = yield / THIS IS THE MAIN YIELD .clear Any suggestions to get around this please.. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/vzUaQxu5tdEJ. For more options, visit https://groups.google.com/groups/opt_out.