I added /env  (and should have known better) and still get the same errors

#!/usr/bin/env ruby

puts "Hello world!"


./test.rb: line 1: #!/usr/bin/env: No such file or directory
./test.rb: line 3: puts: command not found