I'm trying to get thinking-sphinx working for my project. I'm following this railscast to get it working, but it's not working how it should.
In the railscast, Ryan does @articles = Article.search params[:search]
for the index
method in the controller. When I do this and replace Article.all
with Article.search params[:search]
when I reload the page, all of the articles that were rendered before have vanished. I know they still exist because I can go to url/articles/1
and see the first article.
I then thought that by default since nothing is being searched for, it's not rendering anything, but that's not true either, because even when I search for something, nothing shows up either.
I don't know if it's relevent, but all of the information is being put into a table. The table also has prototypes tablekit widget applied to it.
I hope I'm making sense.
Thanks