syntax error in runner.rb

ruby script/runner 'load "filename.rb"'* fails with ./script/../config/../vendor/rails/railties/lib/commands/runner.rb:47: (eval):1: compile error (SyntaxError)

Rails version is 1.2.0 on Linux

Any clues on what could be incorrect?

Thanks!

ruby script/runner 'load "filename.rb"'* fails with ./script/../config/../vendor/rails/railties/lib/commands/runner.rb:47: (eval):1: compile error (SyntaxError)

Rails version is 1.2.0 on Linux

The * will presumably expand to everything in your current directory, but because you've got some ruby code at the front it's probably trying to evaluate that list of files as if it were ruby, which is unlikely to work. What were you actually trying to do?

Fred

Frederick Cheung wrote: