I have this in a rails view file: ... :javascript var departments = new Object() - @faculties.each do |fac| departments['#{ fac.id }']= new Object()
And the error message I get is: undefined local variable or method `fac' for #<#<Class:0x00000104e1b3d8>:0x000001074bb420> I'm clearly missing something very basic. Can anyone see what the problem is, please. Thanks in advance. Les -- You received this message because you are subscribed to the Google Groups "Haml" group. To unsubscribe from this group and stop receiving emails from it, send an email to haml+unsubscr...@googlegroups.com. To post to this group, send email to haml@googlegroups.com. Visit this group at http://groups.google.com/group/haml?hl=en. For more options, visit https://groups.google.com/groups/opt_out.