Extend description of rails generate scaffold and what it's options accomplish

上级 62f865db
......@@ -535,6 +535,10 @@ command in your terminal:
$ rails generate scaffold Post name:string title:string content:text
</shell>
This will create a new database table called posts (plural of Post). The table
will have three columns, name (type string), title (type string) and content
(type text). It will also hook this new database up to Rails (details below).
NOTE. While scaffolding will get you up and running quickly, the code it
generates is unlikely to be a perfect fit for your application. You'll most
probably want to customize the generated code. Many experienced Rails developers
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册