generat controller rails code example Example: rails controller generator $ rails generate controller Welcome index