Displaying 2 results from an estimated 2 matches for "hasmanythroughassoci".
2007 Nov 12
1
Possible bug
Bug in associations or not?
def has_many
if options[:through]
collection_reader_method(reflection,
HasManyThroughAssociation) <--- FIRST CALL
collection_accessor_methods(reflection,
HasManyThroughAssociation, false) <-- CALLED AGAIN INSIDE THIS METHOD
else
....
def collection_accessor_methods(reflection, association_proxy_class,
writer = true)
collection_reader_method(reflection,
associ...
2008 Mar 23
6
Locals do not appear in partial unless collection is explici
Maybe I''m misunderstanding something but it appears as if
<%= render :partial => @items, @locals => { :this => ''that'' } %>
does not give the local variable this but this one does:
<%= render :partial => ''items/item'', :collection => @items, @locals => {
:this => ''that'' } %>
Shouldn''t they mean