Tricky Git Submodule 1
I recently spent a good amount of time figuring out why the acts_as_taggable_on plugin did not work for me. I used Git’s submodule to grab the code fom GitHub.
> git submodule add git://github.com/mbleigh/acts-as-taggable-on.git vendor/plugin/acts-as-taggable-onIt seems logical to name my plugin directory with dashes since that’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’t had time to really dig deep into that…
Use this instead:
> git submodule add git://github.com/mbleigh/acts-as-taggable-on.git vendor/plugin/acts_as_taggable_onI initially didn’t pay attention to this because before Git, I just used:
> script/plugin install http://svn.intridea.com/svn/public/acts_as_taggable_on/I did not have to explicitly tell where to put the plugin. script/plugin is a Rails thing while Git is not.
Hopefully anyone who gets tripped up by this in the future will find out this post.


