search for: group_of_four

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

2006 Sep 09
5
"locals" in render partial
Hi all, I''m getting an error and I really don''t know why, because I seem to be doing everything well..I pass "testvar" as a variable to render partial: <%= render(:partial => "main/categorysmallitem", :collection => group_of_four, :locals => {:testvar=>"AA"})%> But then, when I try to use testvar inside the partial, it doesn''t recognize it: <%= testvar %> I get the error: undefined local variable or method `testvar'' for #<#<Class:0xb743eff4>:0xb743efcc> Thanks a...