app/controllers/conversations_controller.rb
# Mark a message as read using built in Mailboxer method
Mark a message as read using built in Mailboxer method
Mark a message as read using built in Mailboxer method
def mark_as_read
    @conversation.mark_as_read(current_user)
    flash[:success] = 'The conversation was marked as read.'
    redirect_to conversations_path
  end
def mark_as_read @conversation . mark_as_read ( current_user ) flash [ :success ] = 'The conversation was marked as read.' redirect_to conversations_path end
Mark a message as read using built in Mailboxer method
Mark a message as read using built in Mailboxer method