On Feb 24, 1:54 pm, MaggotChild <[email protected]> wrote:
> On Feb 24, 11:54 am, Eric <[email protected]> wrote:
>
> > On Feb 24, 11:13 am, MaggotChild <[email protected]> wrote:
> > > I'm trying to render a collection of partials using :as. It raises an
> > > undefined local variable exception. Not sure why:
> > Why not use :locals => ?
>
> Sure there a workarounds, but they don't explain why :as won't work.

You're right, of course (except for locals being a workaround), and it
seems like they should work the same or similar, but since :as is
nearly impossible to Google for I recommend whatever workable method
presents itself. That is, all other things being equal, whichever
method is better documented is the stronger one. But that's just me.
--~--~---------~--~----~------------~-------~--~----~
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