search for: region_search

Displaying 1 result from an estimated 1 matches for "region_search".

2006 Apr 12
1
how do i paginate the results of a query?
...an be used to limit the list. It works except that the paginate gets the full set of regions unqualified by my search term. I believe this full list is contained in :regions symbol which I dont seem to be allowed to modify or replace (yes I am a ruby and rails newb). How can I paginate the set my region_search method returns rather than all the regions in my database? Thanks. def region_search regions = Region.find(:all, :conditions => ["name like ?", "%" << params[:name].to_s << "%"]) end def region_list if params[:name].nil? or params[:name].eql?(...