summaryrefslogtreecommitdiff
path: root/app/controllers/search_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/search_controller.rb')
-rw-r--r--app/controllers/search_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index 97ecdfd..ea545b7 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -3,8 +3,7 @@ class SearchController < ApplicationController
3 @page = Page.new 3 @page = Page.new
4 search_term = params[:search_term] 4 search_term = params[:search_term]
5 if search_term and not search_term.empty? 5 if search_term and not search_term.empty?
6 nodes = Node.search(params[:search_term]) 6 @results = Node.search(params[:search_term], :include => :head)
7 @results = nodes.map {|node| node.head}
8 end 7 end
9 end 8 end
10 9