It looks like you're in your home directory. To generate a rails controller you should be in the directory of the rails application you want to modify.
edit: If this isn't the case, paste what happens when you do this (from a clean directory):
rails new new-app
cd new-app
rails g controller welcome index