diff --git a/app/controllers/madmp_fragments_controller.rb b/app/controllers/madmp_fragments_controller.rb index f006015..5e85b2b 100644 --- a/app/controllers/madmp_fragments_controller.rb +++ b/app/controllers/madmp_fragments_controller.rb @@ -23,9 +23,6 @@ answer.user_id = current_user.id answer.save! end - p "########################" - p p_params - p "########################" # rubocop:disable BlockLength MadmpFragment.transaction do @@ -34,7 +31,6 @@ dmp_id: p_params[:dmp_id], parent_id: p_params[:parent_id], madmp_schema: schema, - answer_id: answer.id, data: data ) @fragment.classname = classname diff --git a/app/views/branded/shared/dynamic_form/_modal.html.erb b/app/views/branded/shared/dynamic_form/_modal.html.erb index 059317f..741d9e5 100644 --- a/app/views/branded/shared/dynamic_form/_modal.html.erb +++ b/app/views/branded/shared/dynamic_form/_modal.html.erb @@ -6,7 +6,7 @@ - <%= form_for @fragment, url: create_or_update_madmp_fragments_path(@fragment.id), + <%= form_for @fragment, url: create_or_update_madmp_fragments_path(id: @fragment.id), html: {method: :post, remote: true, class: 'form-horizontal', id: "madmp_fragment_form" } do |f| %> <%= f.hidden_field :dmp_id, id: nil %> <%= f.hidden_field :parent_id, id: nil %>