Thanks Nick, that''s exactly what I was trying to figure out!
On 8/11/05, Nick Ragaz <n.ragaz-H217xnMUJC0sA/PxXw9srA@public.gmane.org>
wrote:> Any partial is available from any controller if you reference it using
> an absolute path (starting from the root of views). For example, if
> you''re in the controller ''blog'' and you want to
use a partial that''s
> associated with the controller ''users'', you can reference
it as
>
> :partial => ''/users/[my_partial]''
>
> (for app>views>users>_my_partial.rhtml)
>
> Alternatively, if the partial isn''t logically associated with any
> particular controller, you can store it at the root of the
''views''
> folder and reference it is
>
> :partial => ''/my_partial''
>
> (for app>views>_my_partial.rhtml)
>
> Cheers,
> Nick
>
>
> James Earl wrote:
> > Hi,
> >
> > Is there any way to make a partial available from all controllers?
> > _______________________________________________
> > Rails mailing list
> > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>