rails how to generate controller code example Example: rails controller generator $ rails generate controller Welcome index