{"id":78,"date":"2007-12-20T22:34:58","date_gmt":"2007-12-20T17:04:58","guid":{"rendered":"http:\/\/www.bin-co.com\/blog\/2007\/12\/installing-the-acts_as_taggable-rails-plugin\/"},"modified":"2007-12-20T22:34:58","modified_gmt":"2007-12-20T17:04:58","slug":"installing-the-acts_as_taggable-rails-plugin","status":"publish","type":"post","link":"https:\/\/www.bin-co.com\/blog\/2007\/12\/installing-the-acts_as_taggable-rails-plugin\/","title":{"rendered":"Installing the acts_as_taggable Rails Plugin"},"content":{"rendered":"<p class=\"intro\">You don&#8217;t have to write a lot of code to get tagging support in your Ruby on Rails application &#8211; you just have to install a plugin. This is how you install the &#8216;acts_as_taggable&#8217; plugin&#8230;<\/p>\n<p>First go to the Ruby on Rails application folder and open a terminal at that location. Now run this commad&#8230;<\/p>\n<p><code class=\"cli\">ruby script\/plugin install acts_as_taggable<\/code><\/p>\n<p>If your have previously installed some plugins from the same repository, that command will work. If not, you will get this error&#8230;<\/p>\n<p><code>Plugin not found: [\"acts_as_taggable\"]<\/code><\/p>\n<p>This is because the &#8216;acts_as_taggable&#8217; plugin is not in any of the repositories you check. To see the all the repositories on your check list, run this command&#8230;<\/p>\n<p><code>ruby script\/plugin list  \t#Shows the list of all the repositories you check.<\/code><\/p>\n<p>To add new repositories to your list, you have to run this command&#8230;<\/p>\n<p><code>ruby script\/plugin discover<\/code><\/p>\n<p>This will shows a list of repositories &#8211; just press &#8216;y&#8217; to select all the repositories you need. I added every repository in the list.<\/p>\n<p>Now run the first command again&#8230;<\/p>\n<p><code>ruby script\/plugin install acts_as_taggable<\/code><\/p>\n<h2>Installing the Gem<\/h2>\n<p>The above instructions are for installing the acts_as_taggable plugin &#8211; not the acts_as_taggable gem. To install the gem run the command&#8230;<\/p>\n<p><code>gem install acts_as_taggable<\/code><\/p>\n<h2>Related Links<\/h2>\n<ul>\n<li><a href=\"http:\/\/wiki.rubyonrails.com\/rails\/pages\/ActsAsTaggablePluginHowto\">Acts As Taggable Plugin Howto<\/a><\/li>\n<li><a href=\"http:\/\/nubyonrails.com\/articles\/the-complete-guide-to-rails-plugins-part-i\">The Complete Guide to Rails Plugins<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>You don&#8217;t have to write a lot of code to get tagging support in your Ruby on Rails application &#8211; you just have to install <a class=\"mh-excerpt-more\" href=\"https:\/\/www.bin-co.com\/blog\/2007\/12\/installing-the-acts_as_taggable-rails-plugin\/\" title=\"Installing the acts_as_taggable Rails Plugin\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,25,29,30],"tags":[35,212,230,242,273,297],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-ruby-on-rails","category-scripts","category-web20","category-web-development","tag-acts_as_taggable","tag-plugin","tag-rails","tag-ruby","tag-tags","tag-web"],"_links":{"self":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":0,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}