i've got a helper method that calls content_for to get all of the
content for a sidebar. it's kind of annoying though because i'm having
to go into each template file and add <% render_sidebar %>

it'd be great if i could add some before filter in the controller and
specify what actions i want the helper method to be called but my
controller doesn't like me calling content_for inside of it. what's
the best way of doing something like this to avoid the repetition of
having to add duplicate code to all of my templates?
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to