rails g controller from terminal code example Example: rails controller generator $ rails generate controller Welcome index