search for: contact_lists

Displaying 2 results from an estimated 2 matches for "contact_lists".

Did you mean: contact_list
2006 Sep 28
15
Inserting rows into linking table
...able and a form 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...
2006 Jan 10
15
KISS and DRY? Not even close!
Hi all, After working on my first rails app and having handed over some very sophisticated coding from a lot of you guys. My app does what I want it to do, but I''m no where near the end yet, and it seems that the KISS and DRY objectives already went down the drain. It could be lack of knowledge, only doing Ruby on (and) Rails for a month, but I''m stuck on the following: