simeonwillbanks/mygists — pull request #9 by simeonwillbanks (2012-12-29 06:45:08+00:00)
Title: Refactor Tags UI to have clearer default tag

Fixes #8

* Add .default #default? and DEFAULT to ActsAsTaggableOn::Tag via ActiveSupport::Concern
* Refactor tags controller to load tag via CanCan, and expose decorated tag.
* ActsAsTaggableOn::TagDecorator no longer prepends default tag with #
* ActsAsTaggableOn::TagDecorator returns specific CSS class for default tag and another CSS class for all other tags
* Update views to use new ActsAsTaggableOn::TagDecorator API
* MyGists::Tags gets default tag from ActsAsTaggableOn::Tag
* Add rake task to rename default tag