Rails‎ > ‎

Most Commonly Used Commands

New Application


rails --database=mysql appName

Database

migration cheat sheet
rake db:create RAILS_ENV='development'

Generate


ruby script/generate (scaffold|migration|model) name \
column:datatype column:datatype [...]

ruby script/generate controller ControllerName [actions]







Comments