Sunday, February 27, 2011

Ruby on Rails: Missing generate script under script folder

I am learning Ruby on Rails as I need it to finish my project quickly. I just read some books and see how Rails can help me do things with shorter time. In a chapter, it is a practical and I try to follow also. I create a project with rake command and I can do that also. Good~~ Then, next step is to use generate script to generate model. The command is
$ ruby script/generate ...

I check that there is only one file under script folder which is rails. After I check from Google, I found that all scripts are removed in Rails 3. You should use
$ rails generate
or
$ rails g
instead of script/generate,
$ rails server
or
$ rails s
instead of script/server and so on.

No comments:

Post a Comment