Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

run rake task in rails console

require 'rake'
Rails.application.load_tasks # <-- MISSING LINE
Rake::Task['my_task'].invoke
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #rake #task #rails #console
ADD COMMENT
Topic
Name
3+1 =