mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 19:06:12 +02:00
Set scope to make shot parameter name
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
c7695cf0b3
commit
db062ee391
@ -50,7 +50,7 @@ module SettingConcern
|
||||
private
|
||||
|
||||
def setting_params
|
||||
params.require(target_class.to_s.underscore.gsub("/", "_")).permit(*target_class.permit_params)
|
||||
params.require(:setting).permit(*target_class.permit_params)
|
||||
end
|
||||
|
||||
def initial_params
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
= render "shared/setting_errors"
|
||||
|
||||
- # NOTE: plugin_setting_form_action_url is defined at SettingConcern
|
||||
= form_with(model: @setting, url: plugin_setting_form_action_url(@fluentd), class: "ignore-rails-error-div", builder: FluentdFormBuilder) do |form|
|
||||
= form_with(model: @setting, scope: :setting, url: plugin_setting_form_action_url(@fluentd), class: "ignore-rails-error-div", builder: FluentdFormBuilder) do |form|
|
||||
- @setting.common_options.each do |key|
|
||||
= form.field(key)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user