Ruby/Rails-我的复习参考,因为我忘了。。。创建项目生成scaf
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ruby/Rails-我的复习参考,因为我忘了。。。创建项目生成scaf相关的知识,希望对你有一定的参考价值。
Ruby / Rails - A refresher reference for me because I forget how to do this... create project generate scaffold scaffolding migrate db start server
A refresher reference for me because I forget how to do this... #1: create a new Ruby on Rails project, run this inside the folder where you want the project: rails newproject then cd into your new project folder cd newproject #2: generate the Scaffolding for your content types, run this inside your rails project folder ruby script/generate scaffold Color name:string shade:string cmyk:string #3: rake together all the classes, migrate them to a database structure rake db:migrate #4: start the rails server script/server
以上是关于Ruby/Rails-我的复习参考,因为我忘了。。。创建项目生成scaf的主要内容,如果未能解决你的问题,请参考以下文章