search for: contact_phone

Displaying 4 results from an estimated 4 matches for "contact_phone".

2006 Aug 11
5
Unit tests - NilClass problem
...st_create test_creation_of :model => Customer, :record => @customer, :fixture => @first, :attributes => [:id, :name, :contact_firstname, :contact_lastname, :contact_address, :contact_country, :contact_state, :contact_email, :contact_phone, :activationcode] end end and when trying to run it I get: ------------ Loaded suite customer_test Started F Finished in 0.731 seconds. 1) Failure: test_create(CustomerTest) [./../test_helper.rb:31:in `test_creation_of'' customer_test.rb:13:in `test_create'']: <ni...
2006 May 06
3
Question about one-to-many-to-many
Guys, I''ve set up a 1-M-M relationship between 3 tables/models. I can''t get cascading deletes (haven''t tried updates yet) to work when the master record is deleted. I''m using MySQL 4.1.x, and the error message is: Mysql::Error: #23000Cannot delete or update a parent row: a foreign key constraint fails: DELETE FROM contact_addresses WHERE (contact_id = 1).
2006 Jul 27
1
response from ajax request
...w_line user.children %> </td> <td><pre><%= user.address %></pre></td> <td> <% user.contacts.each do |contact| %> <%=contact.description %>:&nbsp; <% case contact.contact_type when CONTACT_PHONE %> <%= fmt_phone contact.phone %> <% when CONTACT_EMAIL %> <%= mail_to contact.email %> <% end %> <br /> <% end %> </td> <% if @user_is_admin %> <td class="clear&quot...
2006 Mar 21
3
Newbie - ActiveRecord relationships
...default '''', PRIMARY KEY (`id`) ) TYPE=InnoDB AUTO_INCREMENT=17 ; CREATE TABLE `clients` ( `id` int(4) NOT NULL auto_increment, `name` varchar(100) NOT NULL default '''', `contact` varchar(100) default NULL, `contact_email` varchar(100) default NULL, `contact_phone` varchar(30) default NULL, PRIMARY KEY (`id`) ) TYPE=InnoDB AUTO_INCREMENT=1 ; # Constraints for table `logs` ALTER TABLE `logs` ADD CONSTRAINT `0_243` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`), ADD CONSTRAINT `0_244` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`); # Constraint...