search for: advert_

Displaying 1 result from an estimated 1 matches for "advert_".

Did you mean: advert
2007 Aug 29
2
assign local variable instead of instance variable.
...:collection => @adverts %> I have the render call described with @controller.template.should_receive(:render).with(:partial => ''advert'', :collection => @adverts) Bu when i was about to describe my partial i got stuck. My partial _advert.rhtml: <div id="advert_<%= advert.id %>"> <h3><%=h advert.title %></h3> <p><%=h advert.description %></p> </div> And to describe that: http://pastie.textmate.org/91995 The problem is that (assigns[:advert] = advert) creates an instance variable and :collection...