rails generate a model code example
Example 1: rails g model
$ rails generate model Article title:string text:text
Example 2: how to create new rails app
#first make sure you have rails installed, then...
rails new your_new_rails_app_name
$ rails generate model Article title:string text:text
#first make sure you have rails installed, then...
rails new your_new_rails_app_name