Hi Hugo,
Dana Mulder

Awesome, I managed to make it work! Thanks again for everything. Here is the code in my view to : <% if message.user_id == current_user.id && message.id == @messages.where.not(id: nil).last.id %>
 <div class=”message-body-style” style=”padding-left: 15px;color: gray !important;”><%= message.read == true ? “Read” : “Not read” %></div>
 <% end %>

The only weird thing is that when the conversation is created it creates a message with a nil id and nil attributes so I had to make a query search to get only messages with not nil ids. Otherwise, it works great!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.