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