I’m trying to run the ‘rails’ command from a ruby script. I’m able to
do something like svn this_and_that just fine, but I can’t seem to
execute the rails command using:
rails new_app
It keeps throwing an error:
Exec format error - rails new_app (Errno:ENOEXEC).
Ahh…found the answer. This is probably because I’m on a windows
machines, but you cannot execute rails app in a ruby script. You have
to write:
rails.cmd app
Nelson H. wrote:
Hi,
I’m trying to run the ‘rails’ command from a ruby script. I’m able to
do something like svn this_and_that just fine, but I can’t seem to
execute the rails command using:
rails new_app
It keeps throwing an error:
Exec format error - rails new_app (Errno:ENOEXEC).