Dynamic content in layouts

I’m not sure that I understand your question, or rather how your having this issue. Is your partial called from within your layouts? or inside another view?

There is nothing stopping you from generating a partial in a layout. Just include the partial in your layout like any other partial

<%= render :partial => ‘my_partial’ :object => some_object -%>

This should not be cached unless you have requested that it be cached.

There is specific information regarding caching here

Sorry I couldn’t be more help. Maybe if you could give some more information with your specific case…