title: How to get a Users Messages with Mailboxer
body: <p>I'm building a simple messaging system into my app, and using mailboxer to do this. I'm trying to list out all of the messages that a user has received including the body, and name of the sender. I've been trying to use the code in <a href="https://github.com/RKushnir/mailboxer-app" rel="nofollow">https://github.com/RKushnir/mailboxer-app</a> as a template, but I just can't get things to work. So far I've figured out how to get a array with  the receipts that they own, but haven't figured out how to get the notifications that got with those receipts.</p>
  
  <p>My User model is the messageable model.</p>
  
  <p>I've been able to get to a message that belongs to a user through</p>
  
  <pre><code>@message = current_user.mailbox.inbox.first.messages.first.body
  </code></pre>
  
  <p>But this doesn't seem efficient, and I'm struggling to iterate through all the conversations to pull out all the messages. </p>
  
  <p>Thanks</p>