Refactor of search view

This commit is contained in:
Henrik Hansen
2010-08-29 13:34:08 +02:00
parent 294847ed99
commit ed41152228
3 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -129,8 +129,8 @@ module Precious
end
get '/search' do
@q = params[:q]
@search_command = "cd #{$path} && git grep -c '#{@q}' master"
@query = params[:q]
@search_command = "cd #{$path} && git grep -c '#{@query}' master"
@results = `#{@search_command}`
mustache :search
end