Create messages_controller.rb

This method is to implement private chat in Ruby on Rails application