Acst_as_solr error

hi,

i am using https://github.com/mattmatt/acts_as_solr
it shows the following error
"undefined method ‘each’ for "
for this

results = Employee.find_by_solr(@id)
results.each do |emp|
puts emp.id
end
where plugin does not contains “each” method in acts_as_solr/libs/
search_results.rb
so for me each is not working with ActsAsSolr::SearchResults

next i tried with GitHub - mauricio/acts_as_solr: acts_as_solr active_record plugin to make your active_record models indexable using the Solr full text search tool plugin
wich results in following error

"undefined method ‘find_by_solr’ for "

can any one provide me solution for this

thanks
-pab

Not a solution, but an end run around the problem: I used to use
acts_as_solr, but now I use rsolr and it works without problem. It’s a
fairly similar API, but not identical, so it will take a little bit of
change to your app.

On Fri, Sep 9, 2011 at 1:25 AM, Pab [email protected] wrote:

i am using https://github.com/mattmatt/acts_as_solr
it shows the following error

so for me each is not working with ActsAsSolr::SearchResults

can any one provide me solution for this

The solution has already been provided (more than once) for you:
read the documentation for the library you’re trying to use.


Hassan S. ------------------------ [email protected]

twitter: @hassan