search for: saved_search_id

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

2006 May 09
0
Passing params between actions?
...es 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 params on to the component_action? if @params[:saved_search_id] @saved_search = SavedSearch.find(params[:saved_search_id]) else @saved_search = SavedSearch.new saved_search.update_attributes(params[:saved_search]) end Thanks to Brian Hughes and Liquid for great answers on my doc question! Thanks, Eric -------------- next part --------...
2006 May 26
0
has_and_belongs_to_many with fk constraints?
...odel 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 "neighborhoods_saved_searches" DKey (id)=(1) is still referenced from table "neighborhoods_saved_searches". Fri_triggers.c L3302 Rri_ReportViolation: DELETE FROM saved_searches WHERE id = 1 Models ------------ class SavedSearch < ActiveRecord::Base has...