search for: workprofil

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

Did you mean: workprofile
2007 Aug 01
1
How to perform search on multiple models and controllers
Hi I am using acts_as_ferret and it works great on inidvidual models. Like I can search seperately for fileds indexed in BasicProfile model and fields indexed in WorkProfile model. I would like to know if it is possible to search commonly for all the fileds in these two models? Cheers Cass -- Posted via http://www.ruby-forum.com/.
2007 Oct 03
3
Pagination problem with acts_as_ferret
...nt is showing only 10 instead of 12 thats the right count. Here''s my code: Controller: def search @users = User.available_users @user = User.find(session[:user_id]) @query = params[:query] || '''' @total, @user_profiles = UserProfile.multi_search(@query, [ WorkProfile, SchoolProfile ], :page => (params[:page]||1)) @pages = pages_for(@total) unless @query.blank? @results = UserProfile.find_by_contents @query end end model: def self.multi_search(q, additional_models = [], options = {}) return nil if q.nil? or q=="" default_options =...
2007 Aug 14
0
problem searching dynamic strings with acts_as_ferret
...ust C. How can we use the LIKE operator for this serach in acts_as_ferret? I am listing the method here: def search_names @users = User.available_users @user = User.find(session[:user_id]) @query = params[:query] || '''' @total, @users = User.multi_search(@query, [ WorkProfile ], :page => (params[:page]||1)) @pages = pages_for(@total) unless @query.blank? @results = User.find_by_contents @query end end Could you please help me with this... Cheers Cass -- Posted via http://www.ruby-forum.com/.