Using right search form parameter "search"
This commit is contained in:
parent
0b71665dd0
commit
fde6a8dbb0
1 changed files with 3 additions and 2 deletions
|
|
@ -2,8 +2,9 @@ class PackagesController < ApplicationController
|
|||
def index
|
||||
@packages = Package.includes(:screenshots)
|
||||
|
||||
if params[:search]
|
||||
@packages = @packages.text_search(params[:search][:query])
|
||||
if params[:query]
|
||||
@packages = @packages.text_search(params[:query])
|
||||
#@packages = @packages.text_search(params[:search][:query])
|
||||
end
|
||||
|
||||
#if params[:with_screenshots]=='yes'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue