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
On Aug 24, 3:08 am, Heinz Strunk
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---