248 Teilen
8 Ergebnisse
markiert
#rails
Rake::Task[:extra_behavior].invoke
Rake::Task[:my_task].invoke(1,'v18_0',20141230)
With Rails, you don’t have to think about how to structure your app. According to The Rails Doctrine, “You’re not a beautiful and unique snowflake”. There’s no need to deliberate over the same…
Running your Rake tasks requires two steps:
Loading Rake
Loading your Rake tasks
You are missing the second step.
Normally this is done in the Rakefile, but you have to do it manually here:
require 'rake'
Rails.application.load_tasks
Rake::Task['my_task'].invoke
