To delete a tag from the Rails console, try:
t = Tag.find_by_name('<your_tag_name>')
t.destroy!
Calling destroy! instead of delete in the last command will clean up all records on the site that are associated with the removed tag.
To delete a tag from the Rails console, try:
t = Tag.find_by_name('<your_tag_name>')
t.destroy!
Calling destroy! instead of delete in the last command will clean up all records on the site that are associated with the removed tag.