简体   繁体   English

在Rails 3中创建新的Rails应用程序

[英]Creating a new rails application in rails 3

in the previous rails versions you ran 在您之前运行的Rails版本中

rail whatevertheappsname -d mysql 

what is the new way and how do you generate scaffolds and controllers/migratations ext.. 什么是新方法,以及如何生成支架和控制器/迁移扩展。

You want: 你要:

rails new whatevertheappsname -d mysql

Generation of scaffolds/etc. 支架/等的产生 is like this: 是这样的:

rails generate scaffold blah name:string content:text ...
rails generate migration add_field_to_blah ...

Hope that helps! 希望有帮助!

Also, might be worth checking out: http://railscasts.com/ . 另外,可能值得一看: http : //railscasts.com/ The last few episodes have been dedicated to switching to Rails 3 and are very helpful. 最近几集致力于切换到Rails 3,它们非常有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM