On Mar 1, 8:42 pm, Phlip <[email protected]> wrote:
> Frederick Cheung wrote:
> > render :partial => 'blah', :object => foo
>
> To save me from Googling for "object", what does that look like inside the 
> partial?

the object specified in that way is assigned to a local variable
called object and to a local variable called after the partial (ie the
same thing that happens when you do :collection => foos) (or using the
name specified in the :as option)

Fred



--~--~---------~--~----~------------~-------~--~----~
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