It seems that the latest version of ts causes rails to complain when
rendering search results to_xml. For the following line:

 render :xml => { :users => { :total_count => users ?
users.total_entries : 0, :users => users } }

I get an error which looks like:

NoMethodError (undefined method `singularize' for :users:Symbol):


The error goes away if I cast the results to an array, as such:

 render :xml => { :users => { :total_count => users ?
users.total_entries : 0, :users => users.to_a } }


Just wondering if this was a known change.

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to