开发者

Rails generate scaffold creates in wrong places

On a fresh project, rails generate behaves strangely. I did:

rails new pm
cd pm/

rake db:migrate

rails generate controller home index

rails generate scaffold Entry title:string content:text date:date

Now my dir looks like this: What went wrong?

ls
app       date:date  generate  log        README    title:string
config        db     home        scaffold   tmp
content:text  doc    index     pub开发者_如何学Clic     script    vendor
controller    Entry  lib       Rakefile   test

My system is an Ubuntu lucid, ruby-1.8.

$ gem -v 
1.3.5


just to mark it answered:

For now I installed rubygems manually and installed rails-3 via gem

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜