hi, i am using 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.com/mauricio/acts_as_solr plugin wich results in following error "undefined method ''find_by_solr'' for " can any one provide me solution for this thanks -pab -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
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 4:25 AM, Pab <prabu.net88-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi, > > i am using 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.com/mauricio/acts_as_solr plugin > wich results in following error > > "undefined method ''find_by_solr'' for " > > can any one provide me solution for this > > thanks > -pab >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, Sep 9, 2011 at 1:25 AM, Pab <prabu.net88-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i am using 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 thisThe solution has already been provided (more than once) for you: read the documentation for the library you''re trying to use. -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Reasonably Related Threads
- acts_as_solr problem ActsAsSolr::SearchResults:
- undefined method `model_name' for NilClass:Class in rails 3.0.0
- problem with submit button in rails 3
- rjs error TypeError: element.getElementsByTagName is not a function in rails 3+jquery
- problem with auto increment in rails 3