select2_simple_form
select2_simple_form copied to clipboard
Creates a normal select field, even though select2 works when I use it directly.
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 %>