Refactor of search view
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user