TODO: <Insert clever marketing phrase here>
So, I decided to create a Rails Edge app today to run some tests against the latest upcoming release. As per the Rails Guides, all that should be required to create a Rails app is the following command:
rails new myapp --edge
However, things didn't work out as planned. Bundler was failing due to some type of dependency problem.
Bundler could not find compatible versions for "railties": In Gemfile: sass-rails (>= 0) ruby depends on railties (~> 3.2.0) ruby rails (>= 0) ruby depends on railties (4.0.0.beta)
I did not even try to figure out the source of the problem. I simply choose a workaround. All you need to do is use git to clone the rails repo and run the rails executable under the railties/bin directory coupled with the same parameters you would normally pass to create a Rails Edge App.
Create a work directory and change to that directory.
mkdir -p /tmp/work cd /tmp/work
Clone the rails repo.
git clone git://github.com/rails/rails.git
Make sure you checkout the latest stable release.
# you just cloned rails. change to that directory cd rails # this will generate a list of all the current tags. # choose that latest one from the list. git tag git checkout v3.2.2.rc1 (or whatever is the latest release) # now, change back one directory. cd ..
Create the Rails Edge app using the following command.
rails/railties/bin/rails new myapp --edge
I have two videos. One that shows the failure and the other that shows the success. Both of the links are at the top of this post. Please keep in mind that I am an authority of nothing; I simply got this to work.