I want to pass an array to a template as a local variable. The template
passes the same local variable to a partial as a local variable. This isn't
working as I expect and something in the back of my mind is says that I read
something about this. Nothing shows up in the first three pages of my Google
search and it's degenerating into Japanese train (rail) passes.
Quoting Michael Libby <michael.c.libby@gmail.com>:
>
> I want to pass an array to a template as a local variable. The template
> passes the same local variable to a partial as a local variable. This isn't
> working as I expect and something in the back of my mind is says that I read
> something about this. Nothing shows up in the first three pages of my Google
> search and it's degenerating into Japanese train (rail) passes.
Sample of the code that does not work as expected would help us help you.
From my experiments, it appears passing locals to actions in
unsupported.
I've changed to passing the needed information thru an instance variable
to
the action template and a local variable to the partial.
Thanks,
Jeffrey
No, I don't think you can pass locals to render :action.