Pass pre-filled URL query params to keywords association build

to be pre-filled into the creation form
This commit is contained in:
Sebastian Hädrich 2025-06-22 02:04:56 +02:00 committed by GitHub
parent 6af65171f8
commit 5b98c1ba42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ class FiltersController < ApplicationController
def new def new
@filter = current_account.custom_filters.build(action: :warn) @filter = current_account.custom_filters.build(action: :warn)
@filter.keywords.build @filter.keywords.build(params[:keywords])
end end
def edit; end def edit; end