Forum: Ruby how can run a rake task via "ruby ...." (i.e. so I can then use debug features of my IDE)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D5df9fcd7ef4c3c937435d7d6adeab2a?d=identicon&s=25 Greg Hauptmann (Guest)
on 2009-02-04 20:28
(Received via mailing list)
Hi,

Know how can run a rake task via "ruby ...." (i.e. so I can then use
debug features of my IDE)?

For example the following doesn't work:
   Macintosh-2:equity greg$ ruby lib/tasks/populate_dummy_data.rake
   lib/tasks/populate_dummy_data.rake:3: undefined method `namespace'
for main:Object (NoMethodError)


thanks
This topic is locked and can not be replied to.