Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8792559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:59:43+00:00 2026-06-13T22:59:43+00:00

I am using this gem for private messages: https://github.com/jongilbraith/simple-private-messages I want to create a

  • 0

I am using this gem for private messages: https://github.com/jongilbraith/simple-private-messages

I want to create a thread conversation instead of the e-mail conversation the scaffold have provided.

Example, User A have sent 10 messages to User B. User A have also sent 10 messages to User C.

Instead of looping through all the messages. (e-mail look) I want to create a threat like:

Inbox

Conversation with User A (10 messages)
Conversation with User C (10 messages) 

And when clicking on the conversation the messages should be ordered after date. So it would be like a conversation.

The table for messages:

id
sender_id
recipient_id
sender_deleted
recipient_deleted
subject
body
read_at
created_at
updated_at

How do I create these views? How do I group the messages?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:59:43+00:00Added an answer on June 13, 2026 at 10:59 pm

    Short answer is: you can’t with that gem. You’ll have to extend it and add a Conversation model then bridge that between users and messages.

    I propose, instead, you use this gem:

    https://github.com/ging/mailboxer

    Far more powerful than your current gem, and it comes with conversations out of the box. I’ve used it before to mimic a gmail-like view.

    From the guide:

    #alfa wants to retrieve all his conversations
    alfa.mailbox.conversations
    
    #A wants to retrieve his inbox
    alfa.mailbox.inbox
    
    #A wants to retrieve his sent conversations
    alfa.mailbox.sentbox
    
    #alfa wants to retrieve his trashed conversations
    alfa.mailbox.trash
    

    Easy as pie:

    current_user.mailbox.conversations.each do |convo|
      convo.subject
      ...
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using this gem to add private messages to my application. https://github.com/LTe/acts-as-messageable/blob/master/lib/acts-as-messageable/message.rb I`m trying
I am using this very nice LinkedIn ruby gem (https://github.com/pengwynn/linkedin) for a project of
I am developing a Rails app using OmniAuth, OmniAuth-salesforce and this gem: https://github.com/heroku/databasedotcom I
I'm using this gem to access google docs in my app. https://github.com/gimite/google-drive-ruby I login
I'm using the following gem in an app - https://github.com/dekart/facebooker2 It seems to be
I am using this gem to search for youtube videos and display with ajax
This question came about because the cells gem specifies template directories using File.join('app','cells'). That
I am using lazy_highcharts gem and trying to configure live charts. Following this guide
I'm using the mailmain gem to grab pop3 mail. This library uses the mail
Whenever I try installing anything using gem, I get this error - murtaza@murtaza-dev:~$ sudo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.