Questions tagged [mailboxer]

mailboxer is a gem for private message system.

This project is based on the need for a private message system for ging / social_stream. Instead of creating our core message system heavily dependent on our development, we are trying to implement a generic and potent messaging gem.

159 questions
64
votes
4 answers

LoadError Unable to autoload constant Message

In my app; when I submit form, I get this error: LoadError at /questions Unable to autoload constant Message, expected /app/models/message.rb to define it It points to the create action in the Questions controller: @message =…
pwz2000
  • 1,385
  • 2
  • 16
  • 50
37
votes
3 answers

foreigner - remove foreign key

I am trying to use mailboxer in my rails 4 app. A problem is arising when i try to deploy the db. The error occurs in creating the mailboxer conversations table, which has dependencies in notifications table. I am trying to remove the foreign key…
Mel
  • 2,481
  • 26
  • 113
  • 273
14
votes
5 answers

How to order mailboxer inbox?

I am using mailboxer gem with my rails application, and i want to order my inbox messages so that when the user receives a new message, I would like to have a notification or keep track of which messages have been read and which have not and order…
Sachin Singh
  • 7,107
  • 6
  • 40
  • 80
6
votes
2 answers

Mailboxer: cannot destroy object

I am trying to destroy an object within my ROR app. But I get the following error: ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "mailboxer_conversation_opt_outs" does not exist LINE 5: WHERE a.attrelid =…
Augustin Riedinger
  • 20,909
  • 29
  • 133
  • 206
6
votes
1 answer

How do notifications work with Mailboxer gem?

I'm trying to figure out how to setup a notifications system using Mailboxer. I've already used it to setup an in-site messaging system so that users can message each other. Now I'd like to use it to send notifications from the site, to notify users…
domi91c
  • 1,962
  • 4
  • 23
  • 38
5
votes
2 answers

How do I customize the Mailboxer email Subject?

I've just installed Mailboxer (gem 'mailboxer') in my Rails 3.1.1 app… I have the email notifications working. I followed these instructions to customize the notification email that users receive when they are sent a new message via the Mailboxer…
5
votes
5 answers

Ruby on Rails - ActiveRecord::Relation count method is wrong?

I'm writing an application that allows users to send one another messages about an 'offer'. I thought I'd save myself some work and use the Mailboxer gem. I'm following a test driven development approach with RSpec. I'm writing a test that should…
Adam Waite
  • 19,175
  • 22
  • 126
  • 148
4
votes
1 answer

My take on creating a notification system in Rails

I can't find any conclusive articles showing how to create notifications in rails. Everyone seems to talk about Mailboxer like it's a good solution, but other than the one paragraph they have on the :Notify method, it seems very vague. So I'm…
David Sigley
  • 1,126
  • 2
  • 13
  • 28
4
votes
2 answers

Extend Conversation model in Mailboxer gem

I want to extend Conversation model, so that i can use an association with it. I have done it by creating a file named 'conversation.rb' in app/models directory in this way: Mailboxer::Conversation.class_eval do belongs_to :device, class_name:…
Aman Garg
  • 4,198
  • 2
  • 21
  • 29
3
votes
2 answers

Rails mailboxer notification relation

I'm trying to do the relation: has_many :notifications, foreign_key: :notified_object_id, conditions: {notified_object_type: 'AppShare'}, dependent: :destroy found on this page:…
Mads E
  • 163
  • 2
  • 12
3
votes
1 answer

File uploading Mailboxer Gem

I'm trying to send a message with an attachment in Mailboxer Gem. My stack is : Rails 4 and Ruby 2.1.1 However, I can see that attachment using CarrierWave is already supported as the link in the code…
Jagjot
  • 5,816
  • 2
  • 24
  • 41
3
votes
4 answers

Adding belongs to relationship to Ruby Gem Mailboxer

I am building an e-com application and would like to implement something like a messaging system. In the application, all conversation will be related to either a Product model or an Order model. In that case, I would like to store the relating…
Quin
  • 513
  • 5
  • 20
3
votes
2 answers

How to access recipient on sent messages page with mailboxer

I am using the mailboxer gem to send messages within my ruby on rails app. The gem is working. I can't for the life of me figure out how to access the recipient on the sent messages page. On the sent messages page, I am trying to loop through…
Philip7899
  • 4,599
  • 4
  • 55
  • 114
3
votes
1 answer

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.
Faizan
  • 105
  • 15
2
votes
2 answers

How to differentiate between user mailbox and shared malbox from Microsoft Graph API explorer

How to differentiate between user mailbox and shared mailbox from Microsoft Graph API explorer. I want to build app which should work with only shared mailboxes. Use of powershell is not possible due to limitation of basic authentication and we are…
1
2 3
10 11