#Rails Commands
##Creating new Project
New Project Sample
$ rails new project_nameNew project with database mysql
- -d = database
$ rails new project_name -d mysql##Rails Generate
Rails Geneate Scaffold To create structure model
- table name = User
- columns name = password:string | email:string
$ rails generate scaffold User password:string email:string##Rake
db:migrate to create database
$ rake db:migrate$ rails console
$ rails console
Ex.: model(mongo) do prost
$irb> ProstVideo::Video.where(id: "560ea733c280770fde00d806").first
Retornando valor de um campo
$irb> ProstVideo::Video.where(id: "560ea733c280770fde00d806").first.video_url