: solr-user@lucene.apache.org
Subject: Re: Newbie Question acts_as_solr
On Dec 18, 2006, at 8:36 PM, Mike Beccaria wrote:
> Another question...
> The controller:
> @query= Movie.find_by_solr(params[:squery])
> Then in the view:
> <%= @query %>
Debugging tip: use <%= debu
e server, for example.
Try Movie.find_by_solr, not lowercase "movie". find_by_solr is a
class-level method, not an instance method.
Erik
On Dec 18, 2006, at 4:01 PM, Mike Beccaria wrote:
> Hi all,
>
> Forgive me for the newbie questions (the questions rolling
tutorial?
Anyway, I'm trying to make the simplest search box and results list
possible. I'm getting and "undefined method `find_by_solr' for
#" error with the files below. I know it's got to be
something dumb and obvious. Can someone point me in the right direction? It
wo