Can partials be accessed from two views?

For me to keep my application DRY i need to be able to have partials
that can be accessed from two views. How is would I go about doing this?

Many thanks,

jakx12

On Thu, Jul 15, 2010 at 2:58 PM, Zack N. [email protected]
wrote:

For me to keep my application DRY i need to be able to have partials
that can be accessed from two views. How is would I go about doing this?
render :partial => “folder/partial_file”
That should be enough.

Many thanks,


Leonardo M…
There’s no place like ~

Further, you should strive to make all your partials accessible like
this, by using :locals in the render and in the partial expecting
variable, not @variable, if that makes sense.

Cheers