Open amadeuspagel opened 6 years ago
This is my code:
<%= simple_form_for(Relation.create, remote: true) do |f| %> <%= f.hidden_field :dependency_id, :value => @article.id %> <%= f.input :dependent_id, as: :select2, collection: Article.all %> <%= f.submit "Add suggestion" %> <% end %>
This is my code: