Skip to content

Instantly share code, notes, and snippets.

@jenningsanderson
Last active August 29, 2015 13:56
Show Gist options
  • Save jenningsanderson/8849844 to your computer and use it in GitHub Desktop.
Save jenningsanderson/8849844 to your computer and use it in GitHub Desktop.
Working Gemfile for Rotten Potatoes Update Assignment. (From BerkleyX 169.1)

This is a working Gemfile for the Rotten Potatoes app on the virtual machine (as of February 6, 2014).

If something is not working in your version, please try the following: rm Gemfile.lock bundle install

If you get an error doing the install, tryobundle update. If this gives an error, compare your Gemfile to this gist. While this process can be frustrating, it is very important to understand how different gem versions often fail to work together.

Read the error messages carefully. Often times they will have good descriptions of why it broke and tell you which versions you must use. Copy the syntax you see here to implicitly declare a version for a gem.

If you see the following error: Gemfile has [Gem] locked at #.##, this is where you want to delete the Gemfile.lock file by running rm Gemfile.lock and then bundle install again.

Please email or come to office hours for more information.

source 'https://rubygems.org'
gem 'rails', '3.2.13'
ruby '1.9.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# for Heroku deployment - as described in Ap A of ELLS book
group :development, :test do
gem 'sqlite3'
gem 'debugger'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# use Haml for templates
gem 'haml'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment