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
  1. A refresher reference for me because I forget how to do this...
  2.  
  3. #1:
  4. create a new Ruby on Rails project, run this inside the folder where you want the project:
  5.  
  6. rails newproject
  7.  
  8. then cd into your new project folder
  9.  
  10. cd newproject
  11.  
  12.  
  13.  
  14. #2:
  15. generate the Scaffolding for your content types, run this inside your rails project folder
  16.  
  17. ruby script/generate scaffold Color name:string shade:string cmyk:string
  18.  
  19.  
  20.  
  21.  
  22. #3:
  23. rake together all the classes, migrate them to a database structure
  24.  
  25. rake db:migrate
  26.  
  27.  
  28.  
  29.  
  30. #4:
  31. start the rails server
  32.  
  33. script/server

以上是关于Ruby/Rails-我的复习参考,因为我忘了。。。创建项目生成scaf的主要内容,如果未能解决你的问题,请参考以下文章

我忘了当一个正常人是什么感觉了

为啥 BlockInput 对我不起作用?我忘了啥吗?

csharp 我忘了C#的东西

为宏正名什么?我忘了去上“数学必修课”!

为宏正名什么?我忘了去上“数学必修课”!

hduoj泛刷题记录:hduoj1000-1003