models/ad.rb :

# To change this template, choose Tools | Templates
# and open the template in the editor.

class Ad
  def initialize
    
  end
  
  def self.getMostRated
    solr = RSolr.connect :url => 'http://127.0.0.1:20030/solr_waseet'
    

    Rails.logger.info 'Solr', solr.inspect
    
    @docs = solr.get 'select', :param => {
      :q => '*:*',
      :sort => 'ps_most_rated',
      :fl => 'entity_id, score',
      :rows => 10
    }
    
    
  end
end


Error :

Extracted source (around line #13):

    Rails.logger.info 'Solr', solr.inspect ( highlighted in browser )
    
    @docs = solr.get 'select', :param => {
      :q => '*:*',