I am trying to run a script in the script/console…but I dont think im
doing it right. can some one help?
I am typing:
rake /lib/tasks/my_rake_file.rake
into the console and I get:
SyntaxError: compile error
(irb):2: unknown regexp options - tak
from (irb):2
On Mar 19, 8:54 pm, Chris G. [email protected]
wrote:
I am trying to run a script in the script/console…but I dont think im
doing it right. can some one help?
I am typing:
rake /lib/tasks/my_rake_file.rake
You’re supposed to do that from the command line. If you wanted to do
that not from the command line then you’d need to require the rake
gem, load that file and then look in the rake docs for how to execute
a task programatically.
Fred
into the console and I get: