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
0
votes
0 answers

mailboxer gem & db setup

I'm trying to deploy my rails 4 app with mailboxer gem. I am getting a PG error that says: PG::DependentObjectsStillExist: ERROR: cannot drop table conversations because other objects depend on it DETAIL: constraint…
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
2 answers

How to disable email notifications for specific users

Mailboxer is sending email notifications when the user has received a new message inside their inbox. This is great, however some users may not want to receive emails. How can I present a checkbox option in the view for the user that will disable…
pwz2000
  • 1,385
  • 2
  • 16
  • 50
0
votes
1 answer

ActionMailer not sending emails, pass value in model

I'm using mailboxer to send email notifications and if I do this: def mailboxer_email(object) return "me@gmail.com" end It works perfectly, but I'm trying to return the user's email and I tried this: def mailboxer_email(object) return…
franklinexpress
  • 1,149
  • 14
  • 44
0
votes
1 answer

How to reply to user of post using mailboxer

I have been working on user massaging for my rails app using the mailboxer gem. For some reason I can't render the messages form and my values aren't being passed, like user.id What's a way of doing this? I know I'm close but I'm fondling hardcore…
franklinexpress
  • 1,149
  • 14
  • 44
0
votes
2 answers

formal argument cannot be an instance variable def trash_folder @trash ||= current_user.mailbox.trash.all end ^

I'm implementing the mailboxer gem into my app and thought this should work but getting the error above, I think it has to do with ||= operator I'm getting this conversations_controller.rb:16: formal argument cannot be an instance variable def …
franklinexpress
  • 1,149
  • 14
  • 44
0
votes
1 answer

Avatar showing in inbox for both sender and receiver

I have the mailboxer gem and I have avatars displaying. In the message view it works, but in the inbox it is showing 2 avatars for each message. One avatar is from the sender and the other is from recipient (current_user). It should only be showing…
pwz2000
  • 1,385
  • 2
  • 16
  • 50
0
votes
1 answer

NameError: undefined local variable or method `message'

Trying the mailboxer gem and in the views I can reference the sender avatar in the message show and it works perfect, but in the conversation view of the inbox I receive a undefined local variable or method `message' with the same code. I made…
Cornelius Wilson
  • 2,844
  • 4
  • 21
  • 41
0
votes
1 answer

using delete_if to find conversations using mailbox and then paginate using kaminari

I'm trying a couple things to find conversations where not all messages have been deleted and it's not working. Here's one implamentation: def index @conversations = @mailbox.conversations.delete_if do |c| receipts = c.receipts_for…
monty_lennie
  • 2,871
  • 2
  • 29
  • 49
0
votes
1 answer

Mailboxer/Rails: Undefined method for 'sender='

I've been slaving at this problem for a day an a half now. I'm using the Mailboxer gem to to create a very cut-and-dried messaging system; one that's identical to the sample - https://github.com/RKushnir/mailboxer-app - just to start off with this…
user3181113
  • 758
  • 2
  • 11
  • 23
0
votes
2 answers

cannot figure out how to update mailboxer is_read

I am using the mailboxer gem and I am trying to make it so that after i look at a conversation (by accessing conversations#show), I want the is_read attribute of the receipt to turn true. However, the attribute will not turn true until I send a…
Philip7899
  • 4,599
  • 4
  • 55
  • 114
0
votes
1 answer

Mailboxer - sent and received messages are not loaded

I am working on implementation of the Mailboxer gem, but I am having issues with displaying messages. Here's the action where I save sent messages: #MessagesController def create # current_user - ID: 253 # @user - ID: 1 @user =…
user984621
  • 46,344
  • 73
  • 224
  • 412
0
votes
1 answer

Rails Mailboxer - Create Conversation from Button

I'm using the mailboxer gem to implement user messaging on an app. Currently, i've got it set up based on this https://github.com/RKushnir/mailboxer-app. Users can enter an email address, subject and message into a form, and start a conversation.…
Ralph King
  • 994
  • 1
  • 9
  • 19
0
votes
2 answers

Show username on Mailboxer inbox in Rails

I'm using the Mailboxer (https://github.com/ging/mailboxer) gem in my Rails app to handle private messages between users. As per the documentation, I'm using = render mailbox.inbox to show a list of all conversations (messages) for the logged-in…
winston
  • 3,000
  • 11
  • 44
  • 75
0
votes
1 answer

Implementing Mailboxer gem in Rails app. ActiveRecord::RecordNotFound

I'm trying to implement the fantastic Mailboxer gem into my Rails app. I want to include a button on a User profile page that loads a form to send that user a private message. I tried to use the code posted in this question as a guide without any…
winston
  • 3,000
  • 11
  • 44
  • 75
0
votes
1 answer

How do I solve Mailboxer reply undefined method `is_trashed?' error?

I'm trying to get Mailboxer gem working in a Rails 3.1 app... I have the New message function working, but replying to a conversation keeps giving me an undefined method 'is_trashed?' for nil:NilClass error. I've been following the read me info on…
1 2 3
10
11