-
Notifications
You must be signed in to change notification settings - Fork 68
Using your own fork of Cells and Apotomo in your Rails project
Fork us!
There are lots of good reasons to want your own fork of Cells and Apotomo — to have a version to call your own that you can use in your projects, that you can control updates to by pulling patches from other forks, and to have a place that you can contribute your own bug fixes and improvements that can be pulled into the canonical versions, etc. So, here is how.
First, fork the projects from apotonick’s repositories. This will require that you have a Github account, natch. From http://github.com/apotonick/cells and http://github.com/apotonick/apotomo, press the “fork” button next to the repository name.
Wait for it. Wait for it. There! Did you feel the sudden sense of ownership? The realization that this is your fork of these awesome projects? That you are an OSS stud? You know it is true.
From the Rails root directory, and replacing “mikepence” with your Github username, do this:
git submodule add git://github.com/mikepence/cells.git vendor/plugins/cells
git submodule add git://github.com/mikepence/apotomo.git vendor/plugins/apotomo
git submodule update
For a very good tutorial on submodules, go here (RT @ apotonick: thanks for link, Winston!).
NOTE: This advice is probably outdated in these post-plugin happy days of Bundler. Instead, just add something like this to your Gemfile:
gem 'cells', github: 'mikepence/cells'