I am using acts_as_taggable_on gem with Rails 4.2 and I have a form where you can enter tags, seperated by commas.
<div class="form-group">
<%= f.label(:tag_list, "Tags (seperated by commas)") %><br />
<%= f.text_field(:tag_list, :class=>"formbox")%>
</div>
The tags work fine, but when I go back to an article and edit it, the commas that were previously there disappear! For example, if I input tags:
white, light, soft
When I edit, those 3 separate tags will become 1 tag:
white light soft
Does anybody know what's happening here? It sucks to lose all those tags, I want to be able to keep all those tags upon edit.
simple_form:
<%= f.input :tag_list, :label => "Tags* (seperated by commas)", :input_html => { :class => "css-class", :value => @article.tag_list.join(", ") } %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With