From 23bbd967e8241c444dbf6c8e77c08ce345422736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Wed, 2 Feb 2022 11:07:34 +0100 Subject: [PATCH] remove nested form gem --- Gemfile | 1 - Gemfile.lock | 2 -- app/assets/javascripts/admin.js | 1 - app/views/admin/education/programs/_form.html.erb | 2 +- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index fd73aa125..fd3550313 100644 --- a/Gemfile +++ b/Gemfile @@ -36,7 +36,6 @@ gem 'front_matter_parser' gem 'two_factor_authentication', git: 'https://github.com/noesya/two_factor_authentication.git' # gem 'two_factor_authentication', path: '../two_factor_authentication' gem 'curation'#, path: '../../arnaudlevy/curation' -gem 'nested_form' # Front gem 'jquery-rails' diff --git a/Gemfile.lock b/Gemfile.lock index d80a92781..12b2bae9c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -267,7 +267,6 @@ GEM multipart-post (2.1.1) mustermann (1.1.1) ruby2_keywords (~> 0.0.1) - nested_form (0.3.2) nesty (1.0.2) nio4r (2.5.8) nokogiri (1.13.1) @@ -443,7 +442,6 @@ DEPENDENCIES kaminari listen (~> 3.3) mini_magick - nested_form octokit pg (~> 1.1) puma diff --git a/app/assets/javascripts/admin.js b/app/assets/javascripts/admin.js index 8d5f8c633..7d66de99b 100644 --- a/app/assets/javascripts/admin.js +++ b/app/assets/javascripts/admin.js @@ -12,7 +12,6 @@ //= require trix //= require sortablejs/Sortable //= require slug/slug -//= require jquery_nested_form //= require_self //= require_tree ./admin/commons //= require_tree ./admin/plugins diff --git a/app/views/admin/education/programs/_form.html.erb b/app/views/admin/education/programs/_form.html.erb index f930ef9bf..d2f938b7b 100644 --- a/app/views/admin/education/programs/_form.html.erb +++ b/app/views/admin/education/programs/_form.html.erb @@ -1,4 +1,4 @@ -<%= simple_nested_form_for [:admin, program] do |f| %> +<%= simple_form_for [:admin, program] do |f| %> <div class="row"> <div class="col-md-3"> <div class="card flex-fill w-100"> -- GitLab