lndl / select2_simple_form

Select2 inputs for SimpleForm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 %>