In my ROR application using acts_as_solr plugin as a search engine which runs on top of Lucene library.
now, i am able to search the results as below in controller
def search @user_class=User.find_by_solr("rajesh") respond_to do |format| format.html # search.html.erb format.xml { render :xml => @user_class } end
my question is how can i display the search results in search.html.erb page
presently doing as below
but getting error as
undefined method `each' for ActsAsSolr::SearchResults:0x463c2e4
Help me , Mahesh