I have a question concerning the use of local variables in partials.
Given that obviously all instance variables of the invoking controller
are available to the partial (as they are available to the normal
template), what situations are there in which to use local variables?
Another question concerns the :object parameter in render :partial =>
“xxx”, :object => @foo. Is it appropriate to use both :object and
locals if I need to pass in more than one parameter? Or shall I set
them all up as locals? Or can I anyway use controller instance
variables? I’m a bit confused These questions come up as I am in
the middle of seriously drying up my code