Skip to content

Instantly share code, notes, and snippets.

@lwe
Last active December 14, 2015 05:59
Show Gist options
  • Save lwe/5038969 to your computer and use it in GitHub Desktop.
Save lwe/5038969 to your computer and use it in GitHub Desktop.
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0.beta1'
gem 'sqlite3'
# THIS BREAKS IT, though when it's at the end of the file it works...
gem 'haml', '~> 3.1'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 4.0.0.beta1'
gem 'coffee-rails', '~> 4.0.0.beta1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.0.1'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the app server
#gem 'unicorn'
$> rails -v
Rails 4.0.0.beta1
$> ruby -v
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.0]
$> bundle -v
Bundler version 1.3.0
$> rails new sasshamlissue
...
$> cd sasshamlissue/
# Use the Gemfile above
$> curl https://gist.github.com/lwe/5038969/raw/7006c0773d8594f3d85eb8d3fe45edbbc17c333b/Gemfile > Gemfile
$> bundle
...
$> ./bin/rails s
=> Booting WEBrick
=> Rails 4.0.0.beta1 application starting in development on http://0.0.0.0:2000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/lukas/.rbfu/rubies/1.9.3-p374/lib/ruby/gems/gems/actionpack-4.0.0.beta1/lib/action_dispatch/middleware/stack.rb:107:in `delete': can't modify frozen Array (RuntimeError)
from /Users/lukas/.rbfu/rubies/1.9.3-p374/lib/ruby/gems/gems/actionpack-4.0.0.beta1/lib/action_dispatch/middleware/stack.rb:107:in `delete'
from /Users/lukas/.rbfu/rubies/1.9.3-p374/lib/ruby/gems/gems/sass-rails-4.0.0.beta1/lib/sass/rails/railtie.rb:33:in `block in <class:Railtie>'
from /Users/lukas/.rbfu/rubies/1.9.3-p374/lib/ruby/gems/gems/activesupport-4.0.0.beta1/lib/active_support/lazy_load_hooks.rb:36:in `call'
from /Users/lukas/.rbfu/rubies/1.9.3-p374/lib/ruby/gems/gems/activesupport-4.0.0.beta1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment