Skip to content

Commit

Permalink
migrate URI::escape to the escape helper
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed May 8, 2023
1 parent 6a305bf commit 706463d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/categories/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- @title = "Edit category"

%div
= form_for :category, url: admin_categories_path + "/" + URI::escape(@category.acronym), method: "PATCH", remote: true, data: { collection: "categories"}, html: {class: "admin-collection-form" } do |f|
= form_for :category, url: admin_categories_path + "/" + escape(@category.acronym), method: "PATCH", remote: true, data: { collection: "categories"}, html: {class: "admin-collection-form" } do |f|
= render partial: "form", locals: {f: f, title_text: "Edit category",
button_text: "Edit category", button_class: "edit-category"}
2 changes: 1 addition & 1 deletion app/views/admin/groups/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- @title = "Edit group"

%div
= form_for :group, url: admin_groups_path + "/" + URI::escape(@group.acronym), method: "PATCH", remote: true, data: { collection: "groups"}, html: {class: "admin-collection-form" } do |f|
= form_for :group, url: admin_groups_path + "/" + escape(@group.acronym), method: "PATCH", remote: true, data: { collection: "groups"}, html: {class: "admin-collection-form" } do |f|
= render partial: "form", locals: {f: f, title_text: "Edit group",
button_text: "Edit group", button_class: "edit-group"}

0 comments on commit 706463d

Please sign in to comment.