search for: savedsearch

Displaying 3 results from an estimated 3 matches for "savedsearch".

Did you mean: saved_search
2006 May 09
0
Passing params between actions?
...d 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 -------------- An HTML attachment was scrub...
2006 May 26
0
has_and_belongs_to_many with fk constraints?
...ods_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_and_belongs_to_many :neighborhoods end class Neighborhoods < ActiveRecord::Base has_and_belongs_to_many :saved_searches end Join table: neighborhoods_saved_searches ---------------------------- id INTEGER NOT NULL PRIMARY KEY saved_s...
2010 May 25
8
params merge on for every action
hi i got to merge a hash of parameters for every action for every controller. the only thing i could image is modifying a super class method. so, how could i modify the method that take care of setting up the parameters? is it ActionController.parameters? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,