- page_title t(".page_title")

= link_to t('fluentd.settings.in_tail.restart_from_first'), daemon_setting_in_tail_path(@fluentds)

= form_for(@setting, as: "setting", url: confirm_daemon_setting_in_tail_path(@fluentd)) do |f|
  = render partial: "form", locals: { f: f, setting: @setting }

  %p
    = f.submit t('terms.next'), class: "btn btn-lg btn-primary float-right"
    = f.submit t('terms.prev'), class: "btn btn-lg btn-secondary", name: "back"

- page_title t(".page_title")

= link_to t('fluentd.settings.in_tail.restart_from_first'), daemon_setting_in_tail_path(@fluentds)

= form_with(model: @setting, scope: "setting", url: confirm_daemon_setting_in_tail_path(@fluentd), builder: FluentdFormBuilder) do |f|
  = render partial: "form", locals: { f: f, setting: @setting }

  %p
    = f.submit t('terms.next'), class: "btn btn-lg btn-primary float-right"
    = f.submit t('terms.prev'), class: "btn btn-lg btn-secondary", name: "back"

Use form_with instead of form_for
Use form_with instead of form_for

Signed-off-by: Kenji Okimoto <7a4b90a0a1e6fc688adec907898b6822ce215e6c@clear-code.com>
