acts-as-taggable-on

https://github.com/mbleigh/acts-as-taggable-on

Ruby

A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.

ActsAsTaggableOn::TagList#to_s

Transform the tag_list into a tag string suitable for editing in a form.
The tags are joined with <tt>TagList.delimiter</tt> and quoted if necessary.

Example:
  tag_list = TagList.new("Round", "Square,Cube")
  tag_list.to_s # 'Round, "Square,Cube"'

Source | Google | Stack overflow

Edit

git clone [email protected]:mbleigh/acts-as-taggable-on.git

cd acts-as-taggable-on

open lib/acts-as-taggable-on/tag_list.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActsAsTaggableOn--TagList-to_s-for-pr


# Commit to git

git add lib/acts-as-taggable-on/tag_list.rbgit commit -m "better docs for ActsAsTaggableOn::TagList#to_s"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ActsAsTaggableOn--TagList-to_s-for-pr

hub pull-request


# Celebrate!