When ever a perform a search query i get wrong number of arguments 0 of 1
my controller code is as follows
def search
@search = User.search do
fulltext params(:search)
end
@friends = @search.results
end
and my model is as follows
searchable do
text :name
end
pls what am i getting wrong here or the gem does not support rails 3.1. thanks
Your controller should be like this:
The params variable is a hash and should be accessed as such, using [] not ().