To create a new application
rails new newapThis will create the app with all the structure of ruby on rails
How a ruby application is structured
to generate a model entry
rails generate model UserThis creates a Class name User but also a table users (note the s) and create a new file under /app/models/user.rb which will contain