Why does Ruby "script/generate" return "No such file or directory"? -


i having trouble using script/generate. following tree based navigation tutorial, says use script/plugin install git://github.com/rails/acts_as_tree.git or script/generate nifty_layout.

i keep getting:

no such file or directory -- script/plugin

i've tried these variations:

script/generate nifty_layout rails generate nifty_layout ruby script/generate nifty_layout ruby generate nifty_layout 

and tell me:

-bash: script/generate: no such file or directory

am missing something? total ruby nuby here , can't seem find answer.

edit: rails 3 on mac os x 10.6

rails 3 problem (or rather cause of). since rails 3 of "script/whatever" commands have been replaced "rails whatever".

so want "rails generate ..." or "rails server" instead.

be sure watch version numbers or post dates when looking @ tutorials :) linkage: missing script/generate in rails 3


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -