On 9/26/07, Duzenbury, Rich [email protected] wrote:
I’ve got a partial that I call from more than one view. I need it to be
slightly different when called from one of the views. Does rails set a
variable to tell the partial which action or view is calling it, and if
You’ve figured out how to get the action name, but I would suggest
that this technique tends to make your code very “brittle”. A better
approach might be to pass a variable to the partial through the call
to render() using the :locals option.