I'm trying to get in place editing working for multiple tags in a rails app. I'm using the best_in_place gem for this, currently I have the code below & it works fine for a single tag. Is there a way to use best_in_place to handle multiple tags.
I'd like to be able to add more tags and edit them in place
<%= best_in_place user, :tag_test, value: friend.tag_test, place_holder: "add tag", :class => "tags btn btn-flat btn-xs btn-link" %>
Thanks!
From the github documentation which you can view here(https://github.com/bernat/best_in_place), it looks like you can use
:selectand:collectionto accomplish what you need. From the github docs: