Displaying 1 result from an estimated 1 matches for "_synopsis".
Did you mean:
synopsis
2006 Mar 20
2
Noob Understanding Collections
...me
in the right direction I would appreciate it.
In my layout I have:
<%= render(:partial => "articles/synopsis", :locals => { :synopsis =>
@article }, :collection => @article ) %>
Now if I understand correctly, that''s going to render the partial
"_synopsis.rhtml" from the articles view. Because the collection
uses a variable name based on the template, I''m setting that variable
to equal the variable coming from the current controller using
":locals".
In the template for the partial I have:
<%=h synopsis[:article][:...