Rails layout: 2 cols cache and content_for..

Posted by Totty on Stack Overflow See other posts from Stack Overflow or by Totty
Published on 2010-04-05T03:27:44Z Indexed on 2010/04/05 3:33 UTC
Read the original article Hit count: 361

Filed under:
|

Hy,

I have a layout that has 2 cols and in every view i have: content_for :main_col and content_for :side_col

in some parts of the site, the side_col is always the same and how do i do that being DRY? partial render? i dont think is so good.

then it comes to cache.. the content_for is not good to cache...

you have better ideias on how to implement this?thanks

© Stack Overflow or respective owner

Related posts about rails

Related posts about layout