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

On Jul 15, 1:07 pm, Leonardo Mateo <[email protected]> wrote:
> On Thu, Jul 15, 2010 at 2:58 PM, Zack Nathan <[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 Mateo.
> There's no place like ~

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to