-
-
Save rubish/1090097 to your computer and use it in GitHub Desktop.
Using jQuery TokenInput with ActsAsTaggableOn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='field'> | |
<%= f.label :tag_list, "Tags" %> | |
<%= f.text_field :tag_list, :class => 'larger widest', :"data-pre" => @model.tags.map(&:attributes).to_json %> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# some routes | |
# add following route, just before `resources :products` | |
get "products/tags" => "products#tags", :as => :products_tags | |
resources :products | |
# some more routes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment