Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creates a normal select field, even though select2 works when I use it directly. #17

Open
amadeuspagel opened this issue Jul 27, 2018 · 1 comment

Comments

@amadeuspagel
Copy link

No description provided.

@amadeuspagel amadeuspagel changed the title Gets me a normal select field, even though select2 works when I use directly. Creates a normal select field, even though select2 works when I use directly. Jul 27, 2018
@amadeuspagel amadeuspagel changed the title Creates a normal select field, even though select2 works when I use directly. Creates a normal select field, even though select2 works when I use it directly. Jul 27, 2018
@amadeuspagel
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant