search for: contacts

Displaying 20 results from an estimated 22870 matches for "contacts".

Did you mean: contact
2007 May 30
4
aaf and dynamic attrs: a bug?
Hi! I faced some issue while using it for dynamic attrs indexing/search. Maybe I made something wrong. Here is test method. Everything works just fine until last line http://pastie.caboo.se/66274 . Tested on both stable and trunk of aaf and ferret 0.11.4. the short version of code below: Contact.acts_as_ferret :fields => [ :first_name ] assert
2006 May 10
3
has_many association.
I''m creating a address book. A user can have many contacts. In the user model, I put: has_many :contacts And in the contact model, I put: belongs_to :user To list all contacts, I search as following: @user = User.find(session[:user_id]) And rendering: <%= render(:partial => "contact", :collection => @user.contacts)%> To persi...
2016 Mar 21
7
Loss of devices registration (pjsip)
Good day. Asterisk 13.7.2, res_pjsip. There is a problem of loss of registration of several devices. This happens not on all devices, but problem devices a lot. Below is the log of registration of a contact of one device. Is suspect two things: 1. delete a contact after the contact is added. But, like, it's a feature of code that may already be fixed. 2. deleting a contact much earlier
2006 Jun 23
3
form_remote_tag is not passing form params
...in my "list" view is not passing the params[] hash of the values stored within my form. I''m not sure whether this is because I have multiple (one per database row) forms to update the fields for multiple objects or not. Rendered HTML Code from my view: <form action="/contacts/ajax_list_update/1" method="post" name="form1" onsubmit="new Ajax.Updater(''contact_1_div'', ''/contacts/ajax_list_update/1'', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;"> <input...
2006 Jun 15
6
Newbie''s problem with a nil object he didn''t expect!
...somebody might be able to help. This is the error: NoMethodError in Blog#friends_entries ActionView::TemplateError (You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.each) on line #2 of app/views/blog/_my_contacts.rhtml: 1: <table cellspacing="1" cellpadding="0"> 2: <% for contact in @contacts %> This is the method from the controller: def contacts @contacts = Contact.find(:all, :conditions => ["user_id = ?", @session[''user''].id]) end Some...
2006 Dec 14
3
Problem with ActiveRecord and Associations
Hi, I''m having what I believe to be a typecast problem with ActiveRecord and Associations. In the code below, I need to flag a contact record for deletion if the contact doesn''t have any addresses or books records: sql = "select id, delete_flag from contacts where id = #{params[:id]}" contact = Contact.find_by_sql(sql) if (contact[0].addresses.count + contact[0].books) > 0 #contact = Contact.find_by_sql(sql) contact[0].update_attribute(:delete_flag,''true'') end The if statement is correctly getting the correct count of...
2006 Apr 07
1
Validate_presence_of error in nested object is not displayed
...t class Contact < ActiveRecord::Base has_one :address validates_presence_of :first_name ,:last_name end .>>> Address class Address < ActiveRecord::Base belongs_to :contact validates_presence_of :address end Addres has the following fields ; address, phone, fax, email In the contacts_controller I have def create @contact = Contact.new(params[:contact]) @address = Address.new(params[:address]) @contact.address= @address @saved = @contact.save logger.debug @contact.address.errors if @saved list render :update do |page| page.replace_html...
2006 Jan 01
9
Child record becomes orphan
Hi all, I''ve got these company (has) contacts relational tables. I want to make sure a company can''t be deleted when it still has contacts. (because I can now, which results in nil like errors when listing the contacts ... obviously) Are there any helpers to do so, is Rails aware of this? Or do I need to put in a condition before...
2005 Dec 22
3
foreign_key setting ignored
I''m having a spot of bother creating a ''has_many'' relationship between two legacy database tables. The relationship is ''company'' table has many linked records in the ''contact'' table. Iv''e used ''generate scaffold'' on these tables and everything is fine. I then decided to define the relationship in the
2006 Jan 10
8
Noob: Child records not saved
Hi all, happily coding along, but it seems a belongs_to record is not saved. # Create some stuff def create_project @contact = Contact.new @project = Project.new(@params[''project'']) @project_contact = ProjectContact.new(@params[''collect'']) @project.project_contact = @project_contact contact =
2006 Apr 24
3
Rails Recipes Book: Routing Error
Hi, I''m working on the first rails recipe, InPlaceEditing, and following the instructions very carefully. After generating the scaffold for Contact, I then go to the page, thus: http://localhost:3000/contacts/ I get this error: Routing Error Recognition failed for "/contacts/" What should I be checking for to resolve this problem? Thanks. -- Posted via http://www.ruby-forum.com/.
2016 Jun 13
2
PJSIP does not qualify contacts after starting Asterisk
Hi, Yes, we're implementing the dialplan in realtime too. Here the contents of sorcery.conf: [res_pjsip] endpoint=realtime,ps_endpoints aor=realtime,ps_aors contact=realtime,ps_contacts [res_pjsip_endpoint_identifier_ip] identify=realtime,ps_endpoint_id_ips Cheers, Francisco. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Annus Fictus Sent: 13 June 2016 14:11 To: Asterisk Users Mailing List - Non-Commercial Dis...
2006 Feb 07
2
render collection undefined local variable
Why am I getting undefined local variable ''contact'' in my partial. This is code I used to render the partial, works in lots of other places <%= render (:partial => ''list'', :collection => @contacts) %> in my parital I have <%= contact.first_name %> if I write this way it works fine <% for contact in @contacts %> <%= render (:partial => ''list'', :locals => {:contact => contact } ) %> <% end %> @contacts is being loaded with a paginate in...
2006 Jan 10
15
KISS and DRY? Not even close!
...ode, duplicated and some statements are very complex. And this is not what Rails is about. Does this sound familiar to anybody out there? I''m not going to include my whole app but below is one method that made me come to the formentioned dilema. The models: company (hm) <-> (bt) contacts project (ho) <-> (bt) project_contacts The guilty actions (new_project and create_project) are shown below: (They''re workin, but I don''t even wanna think about the edit/update actions) def new_project @project = Project.new @contacts_list = Contact.find_by_sql(''...
2006 Mar 15
1
Through method problems with custom foreign_keys
A person has a many company_branches and A company_branch has many people. This join is represented using a "contacts" table. I am using a legacy schema so i am forced into using non-standard rails primary keys. I am using the new through relationship in rails 1.1. p=Person.find(1) b=p.company_branches # gives this error: ActiveRecord::StatementInvalid: OCIError: ORA-00904: "CONTACTS"."COMP...
2009 Dec 06
3
link_to_function or button_to_function memory usage
...ction instead of doing an ajax call to just edit/add/or cancel a contact. I am running into a memory issue using the button_to_function or link_to_function. I have this: <%= link_to_function ''Edit Contact'' do |page| page[:showcontact].replace_html :partial => ''/contacts/ ajaxshoweditcontact'' end %> and the edit page also has this for the cancel: _ajaxshoweditcontact.rhtml. <%= button_to_function ''Cancel'' do |page| page[:showcontact].replace_html :partial => ''/contacts/ ajaxshowcontact'' end %> When I am...
2016 Jun 13
2
PJSIP does not qualify contacts after starting Asterisk
...0 Contact: pbx-node-1/sip:myurl:5060 771bf6a7d4 Created 0.000 ParameterName : ParameterValue =================================================== authenticate_qualify : false contact : sip:myurl:5060 default_expiration : 3600 mailboxes : max_contacts : 0 maximum_expiration : 7200 minimum_expiration : 60 outbound_proxy : sip:myurl:5060 qualify_frequency : 30 qualify_timeout : 3.000000 remove_existing : false support_path : false So I think that those aors should be qualified automatically when I r...
2008 Jul 01
5
Attaching event observers to a series of elements - best practice?
Hi all, New member here. I''ve been working with Prototype for a while, and I love it. However, there''s one thing I still can''t figure out. Let''s say I have an array of objects, representing contacts in an address book: var contacts = [ { id: 1, firstName: "Bob", lastName: "Smith" }, { id: 2, firstName: "Sue", lastName: "Johnson" }, { id: 3, firstName: "Tim", lastName: "Horton" } ]; I''d like to iterate over this...
2006 Jan 09
2
catch id from form and copy between objects
Hi all, Not completely sure what I''m doing, but I need to get data from another table based on and id. Below is some breakpointer output: irb> @params => {"project"=>{"project_description"=>"point2", "project_name"=>"break2"}, "action"=>"create_project",
2010 Jun 08
9
[Rails Heroku] Problem with saving object (on heroku hosting)
...e, :message => "can''t be blank" validates_presence_of :number, :on => :create, :message => "can''t be blank" end class ContactType < ActiveRecord::Base validates_presence_of :name validates_uniqueness_of :name end migration: create_table :contacts, :force => true do |t| t.integer :user_id t.integer :type_id t.string :name t.string :number t.timestamps end add_index :contacts, :user_id create_table :contact_types, :force => true do |t| t.string :name t.timestamps end en...