Re: partials with action methods?

Steve Bartholomew
2007-02-18T11:41:45Z

> The partial is invoked by the layout, which doesn''t have access to
> controller functions so they only way I can see around this is to
> create the required objects in a befor_filter.
Yeah - use a before filter to load the data you need for the sidebar,
then use a helper or partial to display it.

Steve


--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---