Skip to content
Snippets Groups Projects
Commit 5d25d09d authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

fixing form methods

parent bef33eb4
No related branches found
No related tags found
No related merge requests found
<%= form_for(@learning_object, url: {controller: :learning_objects}) do |f| %>
<% if @learning_object.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@learning_object.errors.count, "erro") %> impedem esse objeto
......@@ -64,7 +63,7 @@
</div>
</div>
<% end %>
<script>
$("#subjectSelect").select2({
placeholder: "Assuntos"
......
......@@ -27,5 +27,9 @@
<% content_for :learning_object_studio_content do %>
<h3 class="head text-center">Edite as informações do seu conteúdo!</h3>
<%= render 'form' %>
<%= form_for(@learning_object, url: {controller: :learning_objects}, html: {method: :put}) do |f|
render 'form', f: f
end %>
<% end %>
\ No newline at end of file
......@@ -27,5 +27,9 @@
<% content_for :learning_object_studio_content do %>
<h3 class="head text-center">Crie seu conteúdo educacional e compartilhe!</h3>
<%= render 'form' %>
<%= form_for(@learning_object, url: {controller: :learning_objects}, html: {method: :post}) do |f|
render 'form', f: f
end %>
<% end %>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment