I have a filename declared like this;
filename = Time.now.strftime("%H:%M:%S")+'.json'
and the error occurs when I do this
File.open(filename,'w') do |f|
f.write(rsp)
end
Error is in `initialize’ : Invalid argument – 18:28:20.json which I assume is beacuse of a filename. When I do some ‘normal’ name everything works OK, so any tips?
Try: