<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Raymond Law: Tricky Git Submodule</title>
    <link>http://blog.rayvinly.com/articles/2008/04/29/tricky-git-submodule</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Tricky Git Submodule</title>
      <description>&lt;p&gt;I recently spent a good amount of time figuring out why the &lt;a href="http://www.mbleigh.com/plugins/acts-as-taggable-on-customizable-tagging-for-rails"&gt;acts_as_taggable_on&lt;/a&gt; plugin did not work for me.  I used Git&amp;#8217;s submodule to grab the code fom GitHub.&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;&amp;gt; git submodule add git://github.com/mbleigh/acts-as-taggable-on.git vendor/plugin/acts-as-taggable-on&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;It seems logical to name my plugin directory with dashes since that&amp;#8217;s what the path suggests, right?  Wrong!  If you do that, it does not work because the plugin expects underscores.  This is probably due to the way Rails finds and loads the plugins, I guess.  Haven&amp;#8217;t had time to really dig deep into that&amp;#8230;&lt;/p&gt;


	&lt;p&gt;Use this instead:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;&amp;gt; git submodule add git://github.com/mbleigh/acts-as-taggable-on.git vendor/plugin/acts_as_taggable_on&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;I initially didn&amp;#8217;t pay attention to this because before Git, I just used:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;&amp;gt; script/plugin install http://svn.intridea.com/svn/public/acts_as_taggable_on/&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;I did not have to explicitly tell where to put the plugin.  script/plugin is a Rails thing while Git is not.&lt;/p&gt;


	&lt;p&gt;Hopefully anyone who gets tripped up by this in the future will find out this post.&lt;/p&gt;</description>
      <pubDate>Tue, 29 Apr 2008 01:03:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:54d24e33-5043-4f89-a99a-18a5dc77bc62</guid>
      <author>Raymond Law</author>
      <link>http://blog.rayvinly.com/articles/2008/04/29/tricky-git-submodule</link>
      <category>Git</category>
      <category>Ruby on Rails</category>
      <category>Web 2.0</category>
      <category>git</category>
      <category>submodule</category>
      <category>ruby</category>
      <category>rails</category>
      <category>rubyonrails</category>
      <category>plugin</category>
      <trackback:ping>http://blog.rayvinly.com/articles/trackback/61</trackback:ping>
    </item>
    <item>
      <title>"Tricky Git Submodule" by ayn</title>
      <description>&lt;p&gt;I wonder if the scripts/plugin script in edge rails handles this properly, it probably does huh&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Tue, 29 Apr 2008 14:27:35 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:5dee094d-030f-4605-8721-c9f5c30afa39</guid>
      <link>http://blog.rayvinly.com/articles/2008/04/29/tricky-git-submodule#comment-6567</link>
    </item>
  </channel>
</rss>
