stadtratmonitor/app/controllers/search_controller.rb

9 lines
182 B
Ruby
Raw Normal View History

class SearchController < ApplicationController
def index
2014-11-19 21:54:36 +01:00
@result = if params[:q].present?
2014-11-19 22:34:14 +01:00
# TODO: Add pagination
Paper.search(params[:q]).records
2014-11-19 21:54:36 +01:00
end
end
end