Displaying 2 results from an estimated 2 matches for "actsassolr".
Did you mean:
acts_as_solr
2011 Sep 08
8
acts_as_solr problem ActsAsSolr::SearchResults:
...format.html{render :action => ''search''}
format.xml
end
end
in my model i gave
acts_as_solr :fields => [ :name ]
when i tried with search
puts "------------------------------#{@emp}" shows me the following
------------------------------#<ActsAsSolr::SearchResults:
0x9a0f1dc>
any one say me how to retrive value to view page
EMP id<%= @emp.id %><br>
EMP Name<%= @emp.name %><br>
in view error occurs as
"undefined method `id'' for nil:NilClass"
thanks,
-pab
--
You received this message because...
2011 Sep 09
2
acst_as_solr error
...s 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 https://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
-...