Migrate form_tag to form_with in admin and auth views (#30692)
This commit is contained in:
parent
a7264a2b42
commit
8d5ed19c6d
13 changed files with 122 additions and 69 deletions
|
|
@ -10,7 +10,10 @@
|
|||
email: content_tag(:strong, @user.email),
|
||||
settings_path: settings_preferences_notifications_path
|
||||
|
||||
= form_tag unsubscribe_path, method: :post do
|
||||
= hidden_field_tag :token, params[:token]
|
||||
= hidden_field_tag :type, params[:type]
|
||||
= button_tag t('mail_subscriptions.unsubscribe.action'), type: :submit
|
||||
= form_with url: unsubscribe_path do |form|
|
||||
= form.hidden_field :token,
|
||||
value: params[:token]
|
||||
= form.hidden_field :type,
|
||||
value: params[:type]
|
||||
= form.button t('mail_subscriptions.unsubscribe.action'),
|
||||
type: :submit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue