Check out example codes for "rails g model". It will help you in understanding the concepts better.

Code Example 1

$ rails generate model Article title:string text:text

Code Example 2

$ rails generate controller Welcome index

Learn ReactJs, React Native from akashmittal.com