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
1 answer

Rails 4 Index.html.erb loop

So I have the following index for my mailboxer conversations: conversations/index.html.erb

<% @conversations.each do |conversation| %> <% conversation.participants.each do |participant| %> <% if participant != current_user %> From: <%=…

mystic cola
  • 1,465
  • 1
  • 21
  • 39
0
votes
1 answer

Mailboxer Gem using multiple models

I Have two models User and employee which need to interact with each other. This is a controller based on the sample app (controller). I need it to work for both models but adding an if/else statement for def like mailbox etc to determine if a…
user3720088
  • 93
  • 1
  • 5
0
votes
1 answer

notifications_on_conversation_id does not exist mailboxer rails issue

I upgraded mailboxer gem and followed the steps in the documents from 0.11 to 0.12: $ rails generate mailboxer:namespacing_compatibility create db/migrate/20140707050845_mailboxer_namespacing_compatibility.rb $ rails generate mailboxer:install…
hellomello
  • 8,219
  • 39
  • 151
  • 297
0
votes
1 answer

Mailboxer Gem--Restrict messaging

Mailboxer allows you to connect multiple models as in the example from the gem page. Mailboxer Github page You can use Mailboxer in any other model and use it in several different models. If you have ducks and cylons in your application and you…
thepervysage
  • 27
  • 1
  • 3
0
votes
1 answer

tricky union query using ruby on rails/active record

I have a = Profile.last a.mailbox.inbox a.mailbox.sentbox active_conversations = [IDS OF ACTIVE CONVERSATIONS] a.mailbox.inbox & active_conversations returns part of what I need I want (a.mailbox.inbox & active_conversations) AND…
bezzoon
  • 1,755
  • 4
  • 24
  • 52
0
votes
1 answer

Mailboxer Gem Rails 4 - Creating the Views

I'm having difficulty implementing the views for the Mailboxer gem in Rails 4. So far I have it setup where users can message other users but I don't have anyway for users to see their conversations. I was getting this error even after I created the…
user2756384
  • 33
  • 1
  • 8
0
votes
1 answer

Rails notification routing

In my app I'm using the gem mailboxer to handle my notifications and I've gotten everything up and running but I'm having trouble figuring out how to link_to the object that caused the notification. For example, I have a comment model that belongs…
iamdhunt
  • 443
  • 6
  • 16
0
votes
2 answers

Error posting an action to an array

I'm using rails mailboxer to handle my app's notifications. I've been able to send a notification to single users as outlined in their documentation but I can't figure out how to send a notification to an array of users. In my case, their…
iamdhunt
  • 443
  • 6
  • 16
0
votes
1 answer

Limit number of recipients in rails mailboxer gem

I'm using the mailboxer gem in my app to handle messaging between users and I've got everything working properly but I'm trying to figure out a way to limit the number of users a message can be sent to. I don't know how to override or add to the…
iamdhunt
  • 443
  • 6
  • 16
0
votes
0 answers

Rails 4 Error: undefined method[]' for nil:NilClass`

I'm trying to setup a messaging system in my site using the Mailboxer gem in Rails 4. When my app gets to this code: def fetch_params(key, *subkeys) params[key].instance_eval do case subkeys.size when 0 then self …
domi91c
  • 1,962
  • 4
  • 23
  • 38
0
votes
2 answers

Rails routing error: No route matches [GET] "/conversations/'id'/reply"

I'm having trouble replying to conversations with the Mailboxer gem in Rails 4. There isn't a whole lot of documentation on this gem, or maybe I'm just not experienced enough, but I've been stuck on this for a while…
domi91c
  • 1,962
  • 4
  • 23
  • 38
0
votes
1 answer

Replying to conversations with Mailboxer gem in Rails 4

I'm having trouble replying to conversations with the Mailboxer gem in Rails 4. There isn't a whole lot of documentation on this gem, or maybe I'm just not experienced enough, but I've been stuck on this for a while…
domi91c
  • 1,962
  • 4
  • 23
  • 38
0
votes
1 answer

Mailboxer: Link to send message from profile page (Devise)

Using Mailboxer to create internal messaging system where user can message another user from a listing of basic profiles (for those who have created them). The index that shows the list of basic_profiles (experts) is showing, but the link to the…
0
votes
0 answers

rails gem chosen and mailboxes new message

I'm trying to implement chosen gem with mailboxes for new messages. but the select box always appears empty. messages/new.html.erb <%= form_tag({controller: "messages", action: "create", :class => "form-horizontal"}, method: :post) do %> …
0
votes
1 answer

mailbox.inbox not rendering from mailboxer gem, running rails 4

The other aspects of mailboxer work fine, I can send and receive conversations, I can show conversations both in my console and on my views. However my mailbox.inbox and mailbox.sentbox don't seem to render right. <%= render…