Skip to content

rails 3 1 example gemfile

Daniel Kehoe edited this page May 23, 2011 · 24 revisions

Example Gemfile for Rails 3.1

This is an example Gemfile for the example apps in the Rails Apps repository.

Background

For background, see Managing Rails Versions and Gems.

You can also see the Rails 3.0.7 example gemfile.

Required Gems

The example applications use the following gems.

Two of the example apps use the Mongoid gem for access to a MongoDB datastore.

Two of the example apps use Devise for authentication.

One of the example apps uses OmniAuth for authentication.

I recommend checking for newer versions of these gems before proceeding.

Example Gemfile for Rails 3.1

For the example apps built with Rails 3.1, we recommend that you use the following gems and specify versions optimistically.

The apps have been tested with the indicated versions. If you are able to build an app with a newer gem, please create an issue on GitHub and I will update the app.

Your Gemfile will look like this:

source 'http://rubygems.org'

gem 'rails', '>= 3.1.0.beta1'
gem 'sass'
gem 'coffee-script'
gem 'uglifier'
gem 'jquery-rails'
gem 'rspec-rails', '>= 2.6.0', :group => [:development, :test]
group :test do
gem 'turn', :require => false
  gem 'factory_girl_rails', ">= 1.1.beta1"
  gem 'cucumber-rails', ">= 0.4.1"
  gem 'capybara', ">= 0.4.1.2"
  gem 'database_cleaner', '>= 0.6.7'
end

You may use ActiveRecord with the SQLite database:

gem 'sqlite3'

Alternatively, you may add Mongoid and the bson_ext gem for access to a MongoDB datastore:

gem 'mongoid', '>= 2.0.1'
gem 'bson_ext', '>= 1.3.1'

You may add Devise for authentication:

gem 'devise', '>= 1.3.4'

You may add OmniAuth for authentication:

gem 'omniauth', '>= 0.2.6'
Clone this wiki locally