开发者

ruby:No such file or directory--script/generate(Load error)

I typed code"ruby script/generate model as name:string description:t开发者_运维知识库ext price:decimal seller_id:integer email:string img_url:string"in"rail_apps".but the cmd shows the error like what the title shows.You can know more refering to the Chap2 of the book"[深入浅出.Ruby.on.Rails].OReilly.Head.First.Rails.Jan.A.learner's.companion.to.Ruby.on.Rails.2009"I am looking forward your help.Thankyou~


In Rails 3, you need to use rails generate ... instead of ./script/generate ... (or ruby script/generate ...).

Likewise, script/console is now rails console (or rails c for short) and script/server is rails server (or rails s for short).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜