search for: catalognum

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

2006 Apr 11
1
Variable not evaluating, returning nil object
There is probably a simple answer to this, but I''m fairly new to rails. Any idea why the variable "b" won''t evaluate on this line? <%=image_tag(thumbnail(items[b].catalognum, 192),:alt=>items[b].view_description,:border=>0)%> If I change it to: <%=image_tag(thumbnail(items[0].catalognum, 192),:alt=>items[0].view_description,:border=>0)%> It works fine, and if I append the value of b at the end it prints on the screen as the correct valu...