Rails rake 'Don't know how to build task ' -


i trying run rake task in terminal multiple arguments, keep getting error:

rake populate:user['a' 'a']  dl deprecated, please use fiddle rake aborted! don't know how build task 'populate:user[a' 

my rake file:

namespace :populate   desc 'populate data our database'    task :user, [:username, :password] => :environment |t, args|     // stuff, doesn't work when delete inside here   end end 

i have tried

rake populate:user[a, a]  

it run without parameters:

rake populate:user 

you can try using

rake 'populate:user[a,a]'

also can ref http://thepolymathlab.com/4-ways-to-pass-arguments-to-a-rake-task


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -