Greg Hauptmann
2008-Sep-23 01:13 UTC
how can I override a partial from a plugin??? where does "render" look for partials?
Hi, I''d like to override a particular partial from a plugin. In fact what I''d really like to do is somehow "alias" it so I can effectively add to the HTML that the partial creates. So I''d like to effectively do something like create a bare partial in my own /apps/helpers directory, the equivalent of alias out the plugin partial *.rhtml, then call this but then ADD some extra HTML to the result. This way I can still do plugin upgrades without having to worry about breaking my override. Any suggestions on how to do this? Thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Greg Hauptmann
2008-Sep-23 12:21 UTC
Re: how can I override a partial from a plugin??? where does "render" look for partials?
PS. If this is just not possible, I''d be keen to hear about this too...thanks On Tue, Sep 23, 2008 at 11:13 AM, Greg Hauptmann <greg.hauptmann.ruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''d like to override a particular partial from a plugin. In fact what > I''d really like to do is somehow "alias" it so I can effectively add > to the HTML that the partial creates. So I''d like to effectively do > something like create a bare partial in my own /apps/helpers > directory, the equivalent of alias out the plugin partial *.rhtml, > then call this but then ADD some extra HTML to the result. This way I > can still do plugin upgrades without having to worry about breaking my > override. > > Any suggestions on how to do this? > > Thanks in advance >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---