search for: contact_id

Displaying 20 results from an estimated 30 matches for "contact_id".

2005 Jan 24
1
.call file creation
I am curious partly because it has occurred randomly in my asterisk system. How does one go about creating a .call file for placing a call between two extensions/phones? I know this has been mentioned and is probably in one of the wikis somewhere, but I am unsure exactally how to go about doing it. Can anyone point me in the right direction. Dan
2006 Mar 28
2
Fastest way of adding " " around multiline text in RADRAILS
....hours*timesheets.cost) as cost, sum(items.hours*timesheets.charge*decode(activities.chargetype,0,1,0)) as charge, sum(items.hours*decode(activities.chargetype,0,1,0)) as chargehours from timesheets, contacts, items, activities, employees, divisions where contacts.com_branch_id = 241 and employees.contact_id = contacts.CONTACT_ID and contacts.expired=0 and timesheets.id = items.timesheet and activities.id = items.activity and employees.id=timesheets.employee and divisions.id=employees.division and timesheets.status = 3 and timesheets.start_date >= ? and timesheets.start_date < ? group by timesh...
2006 Sep 28
15
Inserting rows into linking table
...that allows me to select the contacts using checkboxes, but I''m having some problems with the controller and model. I receive the following error message when I submit the form: Mysql::Error: Cannot add or update a child row: a foreign key constraint fails: INSERT INTO contact_lists (`contact_id`, `list_id`) VALUES(1, 2) However, the form variables returned from the form are: Parameters: {"commit"=>"Add Contacts to List", "contact_list"=>{"contact_id"=>["4", "5"], "list_id"=>"2"}} I''m n...
2006 Aug 15
4
observe_form not serializing form
...ws => 10, :id =>''notes_text_area'' %> <%= observe_form(''notes_form'', :frequency => 1, :url => {:action => ''update_notes'', :contact_id => @contact.contact_id}) %> </form> For some reason, the contents of the text area are not being sent in the post. In fact it doesn''t appear that the form is being serialized at all. What am I doing wrong? -- Posted via http://www.ruby-forum.com/.
2006 Mar 07
6
fcgi dispatcher crashing
I''m trying to set deploy an app on apache2 with the fcgid module, but can''t seem to get anywhere. Things work fine with cgi, but when i switch to fcgi, i''m stuck with a ''503: Service Temporarily Unavailable''. There''s no error being logged anywhere, afaik. Trying to run dispatch.fcgi from the shell doesn''t work either. It bombs out,
2006 Sep 18
5
Undefined method "updated?"
I recently updated Rails to the latests version, and one of my existing apps broke. More speficially, it can''t find the method "updated?" when it is attempting to call it on one of my models. The stack trace follows: NoMethodError undefined method `updated?'' for #<MyModel:0xc91d50>
2006 Aug 02
2
Self-Referential has_many :through
...h relationships class Person < ActiveRecord::Base has_many :relationship has_many :contacts, :through => :relationship end end class Relationship < ActiveRecord::Base belongs_to :person, :foreign_key => "person_id" belongs_to :contact, :foreign_key => "contact_id", :class_name => "Person" end If I use the code as above then while the relationships appear in the view the only "Contact" that appears is the Person I am currently looking at (So the Person "Person A" lists "Person A" as a contact). If, on the...
2008 Jun 06
2
joining tables
Hi I have 3 tables as 1) user_groups id | contact_id | group_id | group_user_type_id 2) contact id | name_first | name_last | 3)contact_email_addresses contact_id | contact_email_address_type_id | emailaddress Now I have group_id sa for example 68 What I want is from contact_email_addresses table get all the emailaddress with contact_...
2006 Jun 15
6
Newbie''s problem with a nil object he didn''t expect!
Dear Rubyists/Rails gurus, Though I''ve successfully completed the various Rails tutorials online and the Depot application from the Agile Web Development with Rails book, I''m still pretty much a Ruby/Rails newbie. I''m trying to learn by writing my own simple blogging application, but I''ve run into a problem that has had me scratching my head for a few days now.
2006 Jan 05
7
HOWTO: Combine fields from 2 two tables in 1 object
Hi all, For a dropdownlist (showing "Company - FirstName Lastname'') I want to fill an object @project_contacts with "Name" from table Companies and "Firstname" and "Lastname" from table contacts. Any idea? Regards, Gerard. -- "Who cares if it doesn''t do anything? It was made with our new Triple-Iso-Bifurcated-Krypton-Gate-MOS
2007 Sep 20
1
Relationship Proxies?
...r_token"=>nil, "locale"=>nil, "login"=>"aaron", "created_at"=>"2007-09-18 19:10:55"}> >> og = aaron.user_group => #<UserGroup:0xb70ad3ec @attributes={"name"=>"FeedRoom Operations", "billing_contact_id"=>nil, "type"=>"UserGroup", "contact_id"=>nil, "id"=>"10", "note"=>"Users with access to all client scopes.", "parent_id"=>"4"}, @original_language=nil> >> og.name => "F...
2005 Dec 29
5
Model Composition in Rails
I''m struggling understanding the model view of a combined model. Take the following: class P4 < ActiveRecord::Base has_many :p4_priorities end I figured out the naming and referencing of the sub models (i.e. P4.p4_priorities - seems simple enough but I had weird issues related to it). I''m all ok except that I am having issues with how to reference a
2009 Nov 06
0
Nested objects not propagating from view
...", :force => true do |t| t.string "login", :null => false t.string "first_name" t.string "last_name" t.string "email", :null => false t.string "password", :null => false t.integer "contact_id" t.datetime "created_at" t.datetime "updated_at" end create_table "contacts", :force => true do |t| t.string "company_name" t.integer "address_id" t.integer "phone_areacode", :limit => 3 t.intege...
2006 Jan 28
3
DRY conflict with "Updated at" "Created at" "Deleted at" in view
...%> <% next if column.name == ''id'' %> <% next if column.name ~= ''_id'' %> <% next if column.name == ''created_at'' %> <% next if column.name == ''deleted_at'' %> <% next if column.name == ''contact_id'' %> Thanx! Gerard. -- "Who cares if it doesn''t do anything? It was made with our new Triple-Iso-Bifurcated-Krypton-Gate-MOS process ..." My $Grtz =~ Gerard; ~ :wq!
2006 Aug 13
10
does rails enforce referential integrity???
...------------- class Contact < ActiveRecord::Base has_one :suberb end -------------------------- class Suberb < ActiveRecord::Base belongs_to :contacts end -------------------------- class CreateSuberbs < ActiveRecord::Migration def self.up create_table :suberbs do |t| t.column :contact_id, :integer t.column :name, :string t.column :postcode, :integer end execute "alter table suberbs add constraint fk_suberb_contacts foreign key (contact_id) references contacts(id)" end def self.down drop_table :suberbs end end -------------------------- Tks...
2005 Jul 07
8
Mass mail performance
How does Action Mailer perform when sending out say 3,000 emails? I know the answer will have a lot to do with the hardware, but in general, is Action Mailer up to the task of completing an operation like this in reasonable time?
2006 Jan 18
1
alias for *table*_id
I have a table contacts, in another controller I refer to a particular contact_id as transfer_attorney_id or electrical_inspector_id - how do I create the necessary alias in the Contacts model?
2006 Jan 19
0
Help with nested HABTM relationship
...y => "related_id" 7 end 8 9 class Account < ActiveRecord::Base 10 has_and_belongs_to_many :contacts, 11 :join_table => "accounts_contacts", 12 :foreign_key => "account_id", 13 :association_foreign_key => "contact_id" 14 end 15 16 17 class Contact < ActiveRecord::Base 18 has_and_belongs_to_many :prospect_lists, 19 :join_table => "prospect_lists_prospects", 20 :foreign_key => "related_id", 21 :association_foreign_key => "pros...
2005 Nov 20
1
mySQL 5.0 upgrade - incompatible DateTime format?
...1-20 15:33:12'', `deleted` = 0, `user_name` = ''steve'', `labels` = NULL, `job_name` = NULL, `domain_controller` = NULL, `domain_id` = NULL, `contact_name` = NULL, `customer_id` = NULL, `logged_at` = ''2005-11-20T15:33:12-0800'', `user_id` = 2, `is_log` = 0, `contact_id` = NULL, `vendor_id` = NULL, `job_id` = NULL, `subject` = ''test'', `customer_name` = NULL WHERE id = 8 what is that strange datetime value, anyway? the one it''s trying to store looks like this: ''2005-11-20T15:33:12-0800'' the DateTime that Rails gener...
2006 Mar 15
1
Through method problems with custom foreign_keys
...:foreign_key=>"cmpny_company_id", :class_name=>"Company" has_many :contacts, :foreign_key=>"com_branch_id", :class_name=>"Contact" end class Contact < ActiveRecord::Base set_primary_key "contact_id" belongs_to :company_branch, :foreign_key=>"com_branch_id", :class_name=>"CompanyBranch" belongs_to :person, :foreign_key=>"person_person_id", :class_name=>"Person" end Any idea...