search for: sender_id

Displaying 10 results from an estimated 10 matches for "sender_id".

2005 Dec 19
4
need some help designing my messaging system
I am trying to create a messaging system for my users but I''m having a hard time designing my db. This is what i have in mind, but I am not sure if its the best approach. user has_one inbox user has_one outbox inbox has_many messages outbox has_many messages inbox table user_id outbox table user_id messages table box_id (refers to either inbox or outbox - how?) from_id to_id
2006 Apr 22
7
Proper Database Design For A Newbie
...at` datetime default NULL, `updated_at` datetime default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE `messages` ( `id` int(11) NOT NULL auto_increment, `message` text NOT NULL, `date` datetime NOT NULL default ''0000-00-00 00:00:00'', `sender_id` int(11) NOT NULL default ''0'', `receiver_id` int(11) NOT NULL default ''0'', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; (I''m using acts_as_authenticated for my user management.) Whenever a message is sent, I want both the sender_id a...
2007 Dec 21
7
Using my models
I''m working on upgrading my app to the latest version of backgroundrb. Everything went find until I tried to execute my tasks. Here is my simple worker for testing: class MscWorker < BackgrounDRb::MetaWorker set_worker_name :msc_worker def create(args = nil) # this method is called, when worker is loaded for the first time end # Send a message to everyone def
2011 Feb 16
1
test emails did not arrive at SMTP server : after dovecot installation
...mp; it's running on my RHES 4.2 box. Immediately after postfix is up, I test sending emails from a permitted domain (ahhh, on this postfix server's domain firewall, we even have a firewall rule which permits Tcp25 from those few sending domains' SMTP servers) using an email client to sender_id@[IP_address_of_the_postfix_server] & the /var/log/maillog on the postfix server indicated the email arrives at the postfix server (with some errors though) : # grep recipient_id /var/log/maillog* maillog:Feb 15 11:41:52 hostname postfix/smtpd[6891]: NOQUEUE: reject: RCPT from gate1.mds.com.sg...
2007 Dec 13
16
"Tricks" for testing after_create callback???
...has an id and time stamps assigned as it''s saved. Spec::Mocks::MockExpectationError in ''Message from anyone should be sent on save'' Mock ''Class'' expected :deliver_secret_santa with (#<Message id: nil, subject: "Subj", body: "hi", sender_id: 343839476, recipient_id: 21341157, message_type: nil, created_at: nil, updated_at: nil>) but received it with (#<Message id: 1, subject: "Subj", body: "hi", sender_id: 343839476, recipient_id: 21341157, message_type: nil, created_at: "2007-12-12 21:53:16", updat...
2009 Sep 28
5
Multi-databases support
Hi, While I was hacking ovirt-server, I have found that it's currently restricted to Postgres DB. Even if I like postgres for serious work on a server, I really prefer to hack/dev locally on a Sqlite or MySQL DB. I have googled on rails in order to find a good answer for the "foreign key problem" which forces OVirt to stay on pg. I have found a plugin on this particular
2007 Jul 25
0
:action Problem
..." name="message[id]" value="<%= @message.id %>" /> <input type="hidden" id="message_inbox_id" name="message[inbox_id]" value="<%= params[:inbox_id] %>" /> <input type="hidden" id="message_sender_id" name="message[sender_id]" value="<%= params[:id] %>" /> <p><b>Subject: </b><input type="text" id="message_title" name="message[title]" value="<%= @message.title %>" /></p> <p&gt...
2012 Jan 29
0
ActiveAdmin: Nested attributes not working for STI
...del and active admin resource codes, correct me if i am wrong nested attribute on concept. CUSTOMER MODEL: class Customer < ActiveRecord::Base belongs_to :sender, :class_name => "Customer" has_many :receivers, :class_name => "Customer", :foreign_key => ''sender_id'' has_many :packages accepts_nested_attributes_for :packages accepts_nested_attributes_for :receivers end CUSTOMER ADMIN INTERFACE: ActiveAdmin.register Customer do form do |f| f.inputs "Sender Details" do f.input :name f.input :email f.input :street f.input :cit...
2011 Feb 21
2
Rejected mails
...d it was delivered but somehow there's no mail in the mailbox & using the site below to test, it gave Rejected : http://legacy.zoneedit.com/whois.html OK, connected to gate1.mds.com.sg... < 220 gate1.mds.com.sg ESMTP > HELO edit.dnsvr.com < 250 gate1.mds.com.sg > MAIL FROM:<sender_id at mds.com.sg> < 250 sender <sender_id at mds.com.sg> ok > RCPT TO:<recipient_id at myportaltech.com> < 550 #5.1.0 Address rejected. The recipient_id is basically a Linux OS id in my SMTP server. Would this work or I'll need to have virtual domain ids ? ==============...
2010 Feb 10
16
nil object - can anyone help?
Hi there, I''ve been looking for a while now and can''t seem to find where I''m going wrong.. I''m following a railscast tutorial to send invites out to people. there''s n invitation.rb page: class Invitation < ActiveRecord::Base #attr_accessible :sender_id, :recipient_email, :token, :sent_at belongs_to :sender, :class_name => ''User'' has_one :recipient, :class_name => ''User'' ###validation validates_presence_of :recipient_email validate :recipient_is_not_registered validate...