Rails how to run rake task

前端 未结 6 1336
傲寒
傲寒 2020-12-23 15:30

How do I run this rake file in terminal/console?

my statistik.rake in lib/tasks

desc \"Importer statistikker\"
namespace :reklamer do
  task :iqmedie         


        
6条回答
  •  再見小時候
    2020-12-23 16:29

    Have you tried rake reklamer:iqmedier ?

    My custom rake tasks are in the lib directory, not in lib/tasks. Not sure if that matters.

提交回复
热议问题