This is the code for the Messages controller in the SavingData#View section.
class MessagesController < ApplicationController
@messages = Message.all
If I have understood correctly, the ‘@’ before ‘messages’ in the ‘index’ method says that ‘messages’ is an instance variable. My question is - why do we use an instance variable here when the real use for this variable is to set it in the view and no other method is going to use this variable at a different time.