Faizan
Faizan

Reputation: 105

Cannot mark a message as read while using mailboxer in rails

How can I mark any message as read in mailboxer?

Even if I add the line: <% conversation.mark_as_read(current_user) %> in my view, it does not solve my problem.

Upvotes: 3

Views: 786

Answers (1)

Amar H-V
Amar H-V

Reputation: 1336

In case anybody else has this issue in the future, the solution is to only put code like what is in the original question in something like MessagesController, and to create a form which points to that action.

Upvotes: 2

Related Questions