namespace :refinery do namespace :contacts do # call this task by running: rake refinery:contacts:my_task # desc "Description of my task below" # task :my_task => :environment do # # add your logic here # end end end