The partial is not my problem because I get the return on the ajax as
@groceries is nil which means it cannot pass through the first if statement.
Which also means that @groceries is not being passed to the partial through
AJAX
return nil. that's nothing to do with the partial.
The query looks a bit strange.
1) It should be Grocery not Groceries (and this should give you an
error)
2) It should be find, not search. Are you using any plugin like ferret
for the search?
Then you should mention that.
Does params[:query] have a value? Does it search anything at all?
My guess: @groceries is nil all the time, because the query fails...
Its not the query because without ajax it works. The groceries is correct
and the reason why it is search is because I am using thinking sphinx not
find for my searching in the app.
When I do <%= params[:query] %> in the partial it shows my query which is
red. This is really weird everthing but the instance is passing through.
Thinking sphinx anomally?