Array_or_string_for_javascript

Rails Newby here.
I am trying to send an array to array_or_string_for_javascript. I get
this error:
wrong number of arguments (1 for 0)

Below is my code:
<%
@img = Array.new
@project.images.find(:all).each do |g|
@img << g.image
end
array_or_string_for_javascript(@img)
%>

Kind of baffled by this, basically i simply want to populate a
javascript array with image path’s from my db.

Any help would be greatly appreciated.
Thanks

Never mind… seems restarting mongrel fixed the problem.