alternatives to yield?!

Hello,

I'm currently programming on a website and after quite some work I
figured out that I need a sidebar too but there's a lot already coded so
I can't really change yield because I would have to need to add the
sidebar to many pages. Is there any alternative to add that bar (which
needs of course some db data) without changing the whole website?

I thought about partials but then I don't know how to get the data.

Does anyone have any idea?

Have you looked into content_for ? That lets you render to a different
area on the template , so you should not have to rewrite to much.

http://www.railsbrain.com/api/rails-2.1.0/doc/index.html?a=M002064&name=content_for

J