开发者

"rails generate" creates new "generate" project?

Running the command generates new rails projects:

$ rails generate controller home index 

Th开发者_StackOverflow社区e above will create four new rails projects: generate, controller, home, and index\

Why is this happening?

I'm using rails (2.3.5)


My guess, you are trying to use Rails 3 syntax for a Rails 2 app.

You should use script/generate in Rails 2.


rails generate ...

creates a Rails project called "generate"

Use this instead:

ruby script/generate controller home index
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜