#77 11/9メッセージの一覧画面を作る
■基本操作
https://teratail.com/questions/159995
■ルーティング
resources :rooms, :only => [:create, :show, :index]
indexを表したい時は、/messages で良い。
むしろ /messages/index とするとミスる。
・参考リンク
https://qiita.com/srkw___/items/2f65ef53e06e86930faa
■@userのエラー
undefined method `id' for nil:NilClass
@userが定義されていない。
@user = current_user
をdef indexの最初に追加することで解決