RailsCasts Pro episodes are now free!

Learn more or hide this

scott hamilton's Profile

GitHub User: shamil614

Comments by scott hamilton

Avatar

Does anybody know how to include the author's name in the facet results. I'm trying to figure out if I can avoid looking up the Author for each facet:

ruby
Author.find(facet['term']).name

I was trying to see if I could get the facet to return more than one value like this:

ruby
facet "authors" do
  terms [:author_id, :name]
end