Rails 3 - Relevance Style
Switch branches/tags
Nothing to show
Pull request Compare This branch is 18 commits behind relevance:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



Rails 3 Relevance Style. This means the following:

  • HAML and SASS for your view layer
  • Rspec 2 for specs, with focused specs configured out of the box
  • JQuery/JQuery-UI for javascript - Protoype/Scriptaculous removed
  • Factory Girl for test data
  • Mocha installed and configured for mocking inside RSpec
  • Simple screen.css with a reset at the top

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 -J -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

Make sure to script javascripts using the -J command. This works in Rails 3.0 and later. When Rails 3.1 comes out, jQuery will be configured by default and the -J flag will not be necessary.

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:


Feedback and Other Items

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