daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest May 16th, 2018 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def search
  2.     @results = Detail.find_by_solr(params[:q],
  3.                  :facets => {:fields => [:name]})
  4.    
  5.     if @results    
  6.       @name_facet = @results.facets['name_facet']
  7.     end
  8.  
  9.     respond_to do |format|
  10.       format.html # search.rhtml
  11.     end
  12.   end
RAW Paste Data
Top