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.
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?