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).
精彩评论