Rails 3 - Relevance Style
Latest commit 5022a91 Mar 9, 2012 @rsanheim rsanheim Merge pull request #9 from shayfrendt/master
Update to Rails 3.2
Failed to load latest commit information.
.gitignore Ignore tmp; add task for testing the template Apr 30, 2010
.rvmrc main project should be 193 Nov 30, 2011
Gemfile Update to latest rails Oct 11, 2011
Gemfile.lock Update to latest rails Oct 11, 2011
README.md link out to the actual passenger + ruby 1.9.3 issue Nov 30, 2011
TODO Replace Watchr with Guard in TODO list Aug 15, 2011
template.rb Remove any type of default readme Mar 8, 2012



Rails 3 Relevance Style. This means the following:

  • HAML and SCSS for your view layer
  • Rspec 2 for specs, with focused specs configured out of the box
  • Factory Girl for test data
  • Mocha installed and configured for mocking inside RSpec

Getting Started

First, clone new-world-order locally:

git clone http://github.com/relevance/new-world-order

Then, generate your new application using the template file:

rails new my-app -m new-world-order/template.rb

To use your database of choice, use the built in -d switch to the rails command. New World Order's generated Gemfile will properly respect your database of choice. For Postgres, we reach into your database.yml and make the username postgres (instead of your application name, which the Rails generator does by default).

rails new my-postgres-app -d postgresql -m new-world-order/template.rb

NOTE: You can give the rails command a URL for the template, but due to changes in how Github requires SSL for all urls, and how Net::HTTP verifies SSL in Ruby 1.9+, you now need to clone the template locally first. You can see the issue here for more info:



Ruby 1.9.3 still has some issues, so you may want to downgrade to the latest Ruby 1.9.2, especially if you are on Passenger. Passenger 3.0.10 should fix the issue - see the details here: http://code.google.com/p/phusion-passenger/issues/detail?id=714

Feedback and Other Items

  • Check out the TODO list for our ideas
  • Use Github issues for bugs