Displaying 2 results from an estimated 2 matches for "available_us".
Did you mean:
available_at
2007 Oct 03
3
Pagination problem with acts_as_ferret
...he first page and is giving the link to the second page too.
But when I go to the next page I find the same 10 records instead of the
next 2 records. Also the result count 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...
2007 Aug 14
0
problem searching dynamic strings with acts_as_ferret
...Jens,
I am using acts_as_ferret and multi_search method in it, when I search
for Cass I get the result, but I want to get Cass even if I type Cas or
Ca or just 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...