Is there a way to use partial views from another category?

Hi,

I have a partial view _header.rhtml in my pages directory (views/
pages/) and I’d like to reference that partial view from my blog
directory. For a quick solution, I copied the file into the blog
directory for the blog controller to use. But this makes me change
two things everytime. Is there a way to reference a partial view in
another directory so I can just use one file?

Thanks,

Ron

Ron wrote:

another directory so I can just use one file?

Thanks,

Ron

Ron,

yes… <%= render :partial => ‘subdir/partial_name’ %>

hth

ilan

Thanks!

Ron

On Mar 8, 12:28 pm, Ilan B. [email protected]

Thanks Ilan!

On Mar 8, 12:28 pm, Ilan B. [email protected]