rails 开发效率是如何提升的,看看下面的代码就知道了。
终端进入myfirst目录
使用命令 rails g scaffold products id:integer title:string description:text image_url:string price:float date_available:datetime
会创建一系列的文件以及sql语句
使用命令 rake db:migrate
创建表
现在可以在浏览器打开 http://localhost:3000/products
看一下吧 效率高吧。