mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
add filter for originator
This commit is contained in:
parent
41ed4a9674
commit
1cf5485356
2 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
class SearchController < ApplicationController
|
||||
def index
|
||||
@paper_type = params[:paper_type]
|
||||
options = params.slice(:paper_type)
|
||||
@originator = params[:originator]
|
||||
options = params.slice(:paper_type, :originator)
|
||||
|
||||
@response = Paper.search(params[:q], options)
|
||||
@papers = @response.page(params[:page]).results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue