Skip to content

Instantly share code, notes, and snippets.

def index
search = PartnerPage.find_all_by_indexed_name(params[:term])
names = search.hits.map do |h|
name = h.stored(:name_kword)
url = partner_page_url(h.stored(:friendly_id))
{ :value => name, :id => url }
end