From f251e0d7741c2ce2ab51f4a5645c4f9d8a08e402 Mon Sep 17 00:00:00 2001 From: Mauricio Giacomini Girardello <mgg12@inf.ufpr.br> Date: Tue, 29 Mar 2016 11:16:27 -0300 Subject: [PATCH] fixing learning object edit form action --- app/views/learning_objects/edit.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/learning_objects/edit.html.erb b/app/views/learning_objects/edit.html.erb index 4c1c3aa9..020a8896 100644 --- a/app/views/learning_objects/edit.html.erb +++ b/app/views/learning_objects/edit.html.erb @@ -28,7 +28,7 @@ <% content_for :learning_object_studio_content do %> <h3 class="head text-center">Edite as informações do seu conteúdo!</h3> - <%= form_for(@learning_object, url: {controller: :learning_objects}, html: {method: :put}) do |f| + <%= form_for(@learning_object, url: learning_object_path(@learning_object), html: {method: :put}) do |f| render 'form', f: f end %> -- GitLab