search for: saved_search

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

2006 May 26
0
has_and_belongs_to_many with fk constraints?
Hi folks, I''m wondering if it''s possible to use foreign key constraints on the join tables of a has_and_belongs_to_many relation. Specifically, I get this error when I try and delete a model I''m using, named saved_search, which is many-to-many with neighborhoods. Any ideas? Thanks for any help. :-) -Eric Code: @saved_search.destroy Error: Mupdate or delete on "saved_searches" violates foreign key constraint "neighborhoods_saved_searches_saved_searches_saved_search_id_fk" on "neighborh...
2006 May 09
0
Passing params between actions?
...nt data for the component. I have an ajax scaffold component "listings" that I want to use on one page for "new listings" and on a different page for "listings search results". I''m also trying to make the "search" action save an object called "saved_search" with the search parameters so the searches can be re-run later. So where should code specific to the search action go? I dont'' want to put it in component_update as then both actions would use it. But if I put it in the search action, I''m not sure how to then pass the par...