binarylogic / searchlogic

Searchlogic provides object based searching, common named scopes, and other useful tools.
http://rdoc.info/projects/binarylogic/searchlogic
MIT License
1.39k stars 133 forks source link

Undefined method 'title_like' #79

Open matenia opened 14 years ago

matenia commented 14 years ago

Fantastic plugin/gem from working examples i have seen however,

I have installed as gem and as plugin (tried both)

in an admin controller i want to be able to search the posts so i did the following: def search @posts = Post.all @search = @posts.title_like(params[:search]).to_s
end

and added the search to my admin route via collection

i get the undefined method error, however i have restarted my rails server so all should be working.

Have I done something wrong?