Here is my rake task
namespace :users do
task :change_role, [:role] => :environment do |t, args|
puts args.role
end
end
I am calling it like this:
rake users:change_role["role"]
but I am getting this error no matches found: users:change_role["role"]
users.rake
– Gambrillapp/lib/tasks
– Gambrill