Add profiles_controller.rb

This controller action needs a little cleanup.