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
Any clues on what could be incorrect?
Thanks!
On 22 Apr 2008, at 18:28, Irene S. wrote:
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 C. wrote:
On 22 Apr 2008, at 18:28, Irene S. wrote:
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
ruby ./script/runner ‘load “filename.rb”’ also results in
from
./script/…/config/…/vendor/rails/railties/lib/commands/runner.rb:47
from ./script/runner:3
Note that * is not suffixed at end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs