Stock filter (#1376)

* Initial pass at stock filtering

* Rough in filter

* Cleaning up security listing

* Tweak to search function

* Combobox tweaks

* Clean up search query

* Update trades test with combobox

* Update securities.yml
This commit is contained in:
Josh Pigford
2024-10-28 15:49:19 -04:00
committed by GitHub
parent c2561b5fb4
commit 7d8028b505
15 changed files with 104 additions and 7 deletions

View File

@@ -33,6 +33,10 @@ class Account::TradesController < ApplicationController
end
end
def securities
@pagy, @securities = pagy(Security.order(:name).search(params[:q]), limit: 20)
end
private
def set_account