Creates a normal select field, even though select2 works when I use it directly.
amadeuspagel opened this issue · comments
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 %>