Why does Ruby “script/generate” return “No such file or directory”?

前端 未结 4 1117
青春惊慌失措
青春惊慌失措 2020-12-24 14:10

I am having trouble using script/generate. I am following the tree based navigation tutorial, which says to use script/plugin install git://github.com/rai

4条回答
  •  情深已故
    2020-12-24 14:48

    Rails 3 is your problem (or rather the cause of). Since rails 3 all of the "script/whatever" commands have been replaced with "rails whatever".

    So now you want "rails generate ..." or "rails server" instead.

    Be sure to watch version numbers or post dates when looking at tutorials :) linkage: Missing script/generate in Rails 3

提交回复
热议问题