uninitialized constant V8::JSError (NameError) - ruby-on-rails

I got this error when I try to run my RoR application.
After rails server, this error appear:
uninitialized constant V8::JSError (NameError)
E:\Toan\tnkadmin>rails server
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-2.4.0/lib/less/java_sc
ript/v8_context.rb:61:in `rescue in lock': uninitialized constant V8::JSError (N
ameError)
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-2.4.0/lib
/less/java_script/v8_context.rb:60:in `lock'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-2.4.0/lib
/less/java_script/v8_context.rb:19:in `initialize'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-2.4.0/lib
/less/java_script/v8_context.rb:15:in `new'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-2.4.0/lib
/less/java_script/v8_context.rb:15:in `instance'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-2.4.0/lib
/less/loader.rb:13:in `initialize'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-2.4.0/lib
/less.rb:14:in `new'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-2.4.0/lib
/less.rb:14:in `<module:Less>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-2.4.0/lib
/less.rb:9:in `<top (required)>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-rails-2.4
.2/lib/less/rails.rb:6:in `require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-rails-2.4
.2/lib/less/rails.rb:6:in `<top (required)>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-rails-2.4
.2/lib/less-rails.rb:1:in `require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/less-rails-2.4
.2/lib/less-rails.rb:1:in `<top (required)>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:72:in `require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:70:in `each'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:70:in `block in require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:59:in `each'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler/runtime.rb:59:in `require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/
lib/bundler.rb:132:in `require'
from E:/Toan/tnkadmin/config/application.rb:5:in `<top (required)>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.1
/lib/rails/commands.rb:74:in `require'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.1
/lib/rails/commands.rb:74:in `block in <top (required)>'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.1
/lib/rails/commands.rb:71:in `tap'
from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.0.1
/lib/rails/commands.rb:71:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
This is my gemfile
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '~> 4.0.0'
#gem 'rails', '3.2.9'
gem 'thin'
gem 'haml'
gem 'jquery-rails'
gem 'i18n'
gem 'exception_notification'
# To use ActiveModel has_secure_password
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 4.0.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.0.3'
gem 'less-rails'
gem 'execjs'
#gem 'twitter-bootstrap-rails'
if RUBY_PLATFORM =~ /mingw/
gem 'therubyracer', path: 'lib/therubyracer-0.11.0beta1-x86-mingw32'
gem 'libv8', '3.3.10.4'
else
gem 'therubyracer', platforms: 'ruby'
end
end
# 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'
# To use debugger
group :test, :development do
gem 'sqlite3'
gem 'haml-rails'
gem 'rspec-rails'
gem 'factory_girl'
gem 'factory_girl_rails'
gem 'capybara'
gem 'database_cleaner'
end
group :test do
gem 'cucumber-rails'
# gem 'mysql2'
end
group :production do
gem 'rails_log_stdout', github: 'heroku/rails_log_stdout'
gem 'rails3_serve_static_assets', github: 'heroku/rails3_serve_static_assets'
# gem 'activerecord-postgresql-adapter'
gem 'pg'
gem 'newrelic_rpm'
end
#gem 'execjs'
#gem 'node'
Does anyone know how to fix it?

Remove this gem 'therubyracer and gem 'libv8', '3.3.10.4'' from the current line and add it below gem 'exception_notification'. is thisif RUBY_PLATFORM =~ /mingw/` validated? Check if the rubyracer gem is installed. run bundle and see if the issue exists

Related

There was an error while trying to load the gem 'ie_iframe_cookies'. (Bundler::GemRequireError)

After update to rails 5.1, on running server locally, It gives an error mentioned below, I checked everywhere but I didn't find any solution. I also removed before filter from all over the code but still, it gives this error.
Gem Load Error is: undefined method `before_filter' for ActionController::Base:Class
Did you mean? before_action
Backtrace for gem load error is:
/home/affi/.rvm/gems/ruby-2.3.1/gems/ie_iframe_cookies-0.2.0/lib/ie_iframe_cookies.rb:5:in `<class:Base>'
/home/affi/.rvm/gems/ruby-2.3.1/gems/ie_iframe_cookies-0.2.0/lib/ie_iframe_cookies.rb:4:in `<module:ActionController>'
/home/affi/.rvm/gems/ruby-2.3.1/gems/ie_iframe_cookies-0.2.0/lib/ie_iframe_cookies.rb:3:in `<top (required)>'
/home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:91:in `require'
/home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `each'
/home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `block in require'
/home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `each'
/home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `require'
/home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler.rb:107:in `require'
/home/affi/officeData/evercam-devops/evercam-dashboard/config/application.rb:12:in `<top (required)>'
/home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/commands/server/server_command.rb:128:in `require'
/home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/commands/server/server_command.rb:128:in `block in perform'
/home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/commands/server/server_command.rb:125:in `tap'
/home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/commands/server/server_command.rb:125:in `perform'
/home/affi/.rvm/gems/ruby-2.3.1/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
/home/affi/.rvm/gems/ruby-2.3.1/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
/home/affi/.rvm/gems/ruby-2.3.1/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
/home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/command/base.rb:63:in `perform'
/home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/command.rb:44:in `invoke'
/home/affi/.rvm/gems/ruby-2.3.1/gems/railties- 5.1.0/lib/rails/commands.rb:16:in `<top (required)>'
bin/rails:8:in `require'
bin/rails:8:in `<main>'
Bundler Error Backtrace:
from /home/affi/.rvm/gems/ruby-2.3.1/gems/bundler- 1.14.6/lib/bundler/runtime.rb:90:in `block (2 levels) in require'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `each'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `block in require'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `each'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `require'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.6/lib/bundler.rb:107:in `require'
from /home/affi/officeData/evercam-devops/evercam-dashboard/config/application.rb:12:in `<top (required)>'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/commands/server/server_command.rb:128:in `require'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/commands/server/server_command.rb:128:in `block in perform'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/commands/server/server_command.rb:125:in `tap'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/commands/server/server_command.rb:125:in `perform'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/command/base.rb:63:in `perform'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/command.rb:44:in `invoke'
from /home/affi/.rvm/gems/ruby-2.3.1/gems/railties-5.1.0/lib/rails/commands.rb:16:in `<top (required)>'
from bin/rails:8:in `require'
from bin/rails:8:in `<main>'
Here is my gem file, 'Bundle Install' is running fine.
source 'https://rubygems.org'
ruby '2.3.1'
gem 'rails', '~> 5.1'
gem 'railties', '~> 5.1'
gem 'sass-rails'
gem 'yui-compressor'
gem 'uglifier'
gem 'coffee-rails'
gem 'jquery-rails'
gem 'sprockets'
gem 'javascript-securehash-rails'
gem 'fog'
gem 'asset_sync'
gem 'autoprefixer-rails'
gem 'stripe',
github: 'stripe/stripe-ruby'
gem 'stripe_event'
gem 'nprogress-rails'
gem 'turbolinks'
gem 'georuby'
gem 'geocoder'
gem 'hashie'
gem 'timezone'
gem 'pg'
gem 'sequel'
gem 'bcrypt', '~> 3.1.10'
gem 'protected_attributes_continued'
gem 'rack-rewrite'
gem 'typhoeus'
gem 'puma'
gem 'data_uri'
gem 'country_select',
github: 'stefanpenner/country_select'
gem "devise",
git: 'https://github.com/plataformatec/devise.git'
gem 'ie_iframe_cookies'
gem 'heroku-api'
gem 'intercom-rails'
gem 'wicked_pdf'
gem 'wkhtmltopdf-binary'
gem 'intercom', require: 'intercom'
gem 'imgareaselect-rails', '~> 1.0'
gem 'dotenv'
group :evercam do
gem 'evercam',
github: 'evercam/evercam-ruby'
end
group :production do
gem 'rails_12factor'
gem 'newrelic_rpm'
gem 'wkhtmltopdf-heroku'
gem 'heroku-deflater',
git: "https://github.com/romanbsd/heroku-deflater.git"
end
group :development do
# gem 'jazz_hands',
# github: 'nixme/jazz_hands',
# branch: 'bring-your-own-debugger'
gem 'pry-byebug'
gem 'rspec'
gem 'guard-rspec'
end
group :test do
gem 'database_cleaner'
gem 'factory_girl'
gem 'vcr'
gem 'rspec-rails'
gem 'webmock'
gem 'poltergeist'
gem 'nokogiri'
gem 'simplecov'
gem 'rack_session_access'
gem 'selenium-webdriver'
gem 'launchy'
gem 'codeclimate-test-reporter', require: nil
end
source 'https://rails-assets.org' do
gem 'rails-assets-bootbox'
gem 'rails-assets-bootstrap'
gem 'rails-assets-bootstrap-datepicker'
gem 'rails-assets-bootstrap-tabdrop'
gem 'rails-assets-datatables'
gem 'rails-assets-datatables-plugins'
gem 'rails-assets-datetimepicker'
gem 'rails-assets-fullcalendar'
gem 'rails-assets-iCheck'
gem 'rails-assets-jquery-cookie'
gem 'rails-assets-moment', '~> 2.12.0'
gem 'rails-assets-jquery-form-validator'
gem 'rails-assets-jquery.browser'
gem 'rails-assets-jquery.nicescroll'
gem 'rails-assets-jquery.slimscroll'
gem 'rails-assets-jquery.uniform'
gem 'rails-assets-ladda'
gem 'rails-assets-screenfull'
gem 'rails-assets-videojs'
gem 'rails-assets-bs-slider'
gem 'rails-assets-bootstrap-toggle'
gem 'rails-assets-select2'
gem 'rails-assets-jquery-tags-input'
end
I think this one is before_filter issue, before_filter has been removed in rails 5.1
You should use before_action instead of before_filter
before_filter is deprecated and won't work in rails 5. Also, it looks like the gem is also "deprecated/unmaintained". You can try forking the repo and changing all before_filter to before_action. Then add the repo to your gemfile instead; but, there are no guarantees that will work.

Sass error active admin in Rails 5

I trying to run my server but I have always the same error... I dont find the solution. I search in github and on google nothing work...
Do you have idea ?
rails s
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'sass-rails'. (Bundler::GemRequireError)
Gem Load Error is: uninitialized constant Sass::Script
Backtrace for gem load error is:
/home/nicolas/.gem/ruby/2.3.0/gems/sass-rails-5.0.6/lib/sass/rails/helpers.rb:12:in `<top (required)>'
/home/nicolas/.gem/ruby/2.3.0/gems/sass-rails-5.0.6/lib/sass/rails.rb:8:in `<top (required)>'
/home/nicolas/.gem/ruby/2.3.0/gems/sass-rails-5.0.6/lib/sass-rails.rb:1:in `<top (required)>'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `require'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `each'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `block in require'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `each'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `require'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler.rb:106:in `require'
/home/nicolas/Bureau/rails/site/campsite/config/application.rb:7:in `<top (required)>'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `require'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `block in server'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:90:in `block (2 levels) in require'
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `each'
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `block in require'
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `each'
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `require'
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler.rb:106:in `require'
from /home/nicolas/Bureau/rails/site/campsite/config/application.rb:7:in `<top (required)>'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `require'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `block in server'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
My gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
#gem 'pg'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
#Recherche
gem 'elasticsearch-rails'
gem 'elasticsearch-model'
gem 'searchkick'
#Pagination
gem 'kaminari'
#Google map
gem 'gmaps4rails'
#Gem pour faciliter les scopes des recherches
gem 'has_scope'
gem 'record_tag_helper', '~> 1.0'
#Upload d'images
gem 'carrierwave'
#activeadmin
gem 'sass-rails'
gem 'activeadmin', '~> 1.0.0.pre4'
gem 'inherited_resources', :git => "https://github.com/activeadmin/inherited_resources.git"
gem 'ransack', :git => "https://github.com/activerecord-hackery/ransack.git"
gem 'draper', '> 3.x'
gem 'devise'
gem 'cancancan'
gem "rolify"
# Use jquery as the JavaScript library
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'gmaps-autocomplete-rails'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
#geocoder
gem 'geocoder'
#ImageUploader
gem "paperclip"
#friendly url
gem 'friendly_id'
#balise SEO
gem 'meta-tags'
#bootstrap
gem 'bootstrap-sass', '~> 3.3.6'
#Traduction
gem 'rails-i18n', '~> 5.0.0' # For 5.0.x
#mailboxer
gem 'mailboxer', :git => "https://github.com/mailboxer/mailboxer.git"
#uploadimage
gem 'jquery-fileupload-rails'
#gem 'inherited_resources', :git => "https://github.com/activeadmin/inherited_resources.git"
gem "font-awesome-rails"
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
If you need more details I can paste my other file. Just ask me ;)
EDIT
Gist link Here

Errors while setting up rubymine

After re-installing ruby and doing countless bundle install's I keep on getting this error when I try to run debug, please help:
Uncaught exception: cannot load such file -- js_regex
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/home/elena/.bundler/ruby/2.2.0/client_side_validations-9942c8cc822d/lib/client_side_validations/core_ext/regexp.rb:1:in `<top (required)>'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/home/elena/.bundler/ruby/2.2.0/client_side_validations-9942c8cc822d/lib/client_side_validations/core_ext.rb:3:in `<top (required)>'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/home/elena/.bundler/ruby/2.2.0/client_side_validations-9942c8cc822d/lib/client_side_validations/active_model.rb:1:in `<top (required)>'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
/usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/home/elena/.bundler/ruby/2.2.0/client_side_validations-9942c8cc822d/lib/client_side_validations.rb:5:in `<top (required)>'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `require'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `block (2 levels) in require'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
/usr/local/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
/home/elena/Dev/tibdit-application/config/application.rb:7:in `<top (required)>'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:79:in `require'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:79:in `block in server'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:76:in `tap'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:76:in `server'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/commands.rb:17:in `<top (required)>'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/app_rails_loader.rb:43:in `require'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/app_rails_loader.rb:43:in `block in exec_app_rails'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/app_rails_loader.rb:32:in `loop'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/app_rails_loader.rb:32:in `exec_app_rails'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/lib/rails/cli.rb:5:in `<top (required)>'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/bin/rails:9:in `require'
/usr/local/lib/ruby/gems/2.2.0/gems/railties-4.1.6/bin/rails:9:in `<top (required)>'
/home/elena/Dev/tibdit-application/bin/rails:16:in `load'
/home/elena/Dev/tibdit-application/bin/rails:16:in `<top (required)>'
My gem file:
ruby '2.2.1'
source 'http://rubygems.org'
gem 'rails', '4.1.6'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails'
gem 'node', platforms: :ruby
gem 'jquery-rails', '~> 3.1.0'
gem 'jbuilder', '~> 2.0'
gem 'awesome_print'
gem 'devise', '~> 3.5.1'
gem 'opengraph_parser'
gem 'blockchain'
gem 'block_io'
gem 'newrelic_rpm'
gem 'byebug'
gem 'geoip'
gem 'metainspector', '~> 4.7.2'
gem 'sidekiq'
gem 'htmlentities'
gem 'redis-rails'
gem 'redis-namespace'
gem 'redis'
gem 'redis-rack-cache'
gem 'faraday-http-cache'
gem 'haml'
gem 'uuid'
gem 'curb'
gem 'pismo'
gem 'draper'
gem 'bootstrap-sass'
gem 'autoprefixer-rails'
gem 'select2-rails'
gem 'nokogiri'
gem 'rack-rewrite'
gem 'font-awesome-rails'
gem 'workflow'
gem 'ruby-graphviz'
gem 'execjs'
gem 'therubyracer', :platforms => :ruby # helps execjs run
gem 'kaminari'
gem 'client_side_validations', github: 'DavyJonesLocker/client_side_validations'
gem 'activerecord-session_store'
gem 'exception_notification', '4.0.1'
gem 'pg'
gem 'valid_email', require: 'valid_email/validate_email'
gem 'devise_zxcvbn', github: 'bitzesty/devise_zxcvbn'
group :doc do
gem 'sdoc', '~> 0.4.0'
end
gem 'cryptopay'
gem 'bitbank'
gem 'bitcoin-ruby', require: 'bitcoin'
gem 'tzinfo-data'
gem 'omniauth-google-oauth2', '~> 0.2.8'
gem 'omniauth-linkedin-oauth2'
gem 'omniauth-facebook'
gem 'omniauth-github'
gem 'twitter'
gem 'omniauth-twitter'
gem 'rest-client', '~> 1.6.3'
gem 'griddler'
gem 'griddler-mandrill'
group :development, :test do
gem 'logstasher'
gem 'spring'
gem 'better_errors'
gem 'rspec-rails'
gem 'factory_girl_rails'
end
group :test do
gem "mailcatcher"
gem "faker"
gem "capybara"
gem "database_cleaner"
gem "launchy"
gem "poltergeist"
end
group :heroku, :production do
gem 'rails_12factor'
gem 'puma'
end
gem 'materialize-sass'
gem 'es5-shim-rails'
gem 'prefixfree-rails'
I can run the rails server from terminal, but not using rubymine.
I've also manually installed gem js_regex but still got that error
Solved it by uninstalling activerecord and installing it again, then deleted the Gemfile.lock and ran bundle install --path vendor/cache from this answer.
My colleague and I think that something went wrong when I installed Bundler and that --path vendoe/cache param fixed it but we're not sure and the stackoverflow answer didn't have an explanation either..

jasmine-rails gem not working, sass error

I'm getting the following error after trying to add jasmine to my rails 4 project
rails g jasmine:install
/Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:1132:in `module_function': undefined method `singleton_class?' for module `Sass::Util' (NameError)
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:1132:in `block in <module:Util>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:1132:in `each'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:1132:in `<module:Util>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:14:in `<module:Sass>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:12:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/version.rb:2:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass.rb:9:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/bootstrap-sass-3.0.3.0/lib/bootstrap-sass/sass_functions.rb:1:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/bootstrap-sass-3.0.3.0/lib/bootstrap-sass.rb:7:in `load!'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/bootstrap-sass-3.0.3.0/lib/bootstrap-sass.rb:76:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `each'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `block in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `each'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler.rb:131:in `require'
from config/application.rb:7:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/railties-4.0.0/lib/rails/commands.rb:44:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/railties-4.0.0/lib/rails/commands.rb:44:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Gemfile
source 'https://rubygems.org'
ruby '2.1.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
gem 'pg'
gem 'devise'
gem 'font-awesome-rails'
gem 'bootstrap-sass', '~> 3.0.3.0'
gem 'simple_form', git: 'https://github.com/plataformatec/simple_form.git'
gem 'carrierwave'
gem 'fog', '~> 1.3.1'
gem 'mini_magick'
gem 'rails_12factor'
gem 'friendly_id', '~> 5.0.0'
gem 'feedzirra'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
gem 'bourbon'
group :development do
gem 'sass-rails-source-maps'
end
group :development, :test do
gem 'jasmine'
end
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails', '~> 3.0'
# 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.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
any ideas on what the problem might be?
The solution is to specify the latest version of sass in your gemfile
gem 'sass', git: 'https://github.com/nex3/sass.git'
the issue was solved just 17 days ago here https://github.com/nex3/sass/issues/1057?source=cc

When I run rspec, I get an error claiming that bcrypt-ruby is not part of the bundle

I've made absolute certain that bcrypt-ruby is listed in the gemfile, i've tried requiring different versions of bcrypt-ruby, I've checked that it's installed in the same place as all the other gems. I am using ruby version 1.9.3 with RVM, rails 3.2. I've tried uninstalling and reinstalling ruby. When I run bundle exec rspec spec/, I get this:
Exception encountered: #<Gem::LoadError: bcrypt-ruby is not part of the bundle. Add it to Gemfile.>
backtrace:
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.21/lib/bundler/rubygems_integration.rb:143:in `block in replace_gem'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activemodel-3.2.1/lib/active_model/secure_password.rb:37:in `has_secure_password'
/Documents/Projects/sample_app/app/models/user.rb:3:in `<class:User>'
/Documents/Projects/sample_app/app/models/user.rb:1:in `<top (required)>'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:359:in `require_or_load'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:502:in `load_missing_constant'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:192:in `block in const_missing'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:190:in `each'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:190:in `const_missing'
/Documents/Projects/sample_app/spec/models/user_spec.rb:3:in `<top (required)>'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `block in load'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `block in load_spec_files'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `map'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `load_spec_files'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb:22:in `run'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/monkey/spork/test_framework/rspec.rb:7:in `run_tests'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/spork-0.9.0/lib/spork/run_strategy/forking.rb:13:in `block in run'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/spork-0.9.0/lib/spork/forker.rb:21:in `block in initialize'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/spork-0.9.0/lib/spork/forker.rb:18:in `fork'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/spork-0.9.0/lib/spork/forker.rb:18:in `initialize'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/spork-0.9.0/lib/spork/run_strategy/forking.rb:9:in `new'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/spork-0.9.0/lib/spork/run_strategy/forking.rb:9:in `run'
/Users/jon-eriknissen/.rvm/gems/ruby-1.9.3-p0/gems/spork-0.9.0/lib/spork/server.rb:48:in `run'
/Users/jon-eriknissen/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1548:in `perform_without_block'
/Users/jon-eriknissen/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1508:in `perform'
/Users/jon-eriknissen/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1586:in `block (2 levels) in main_loop'
/Users/jon-eriknissen/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1582:in `loop'
/Users/jon-eriknissen/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/drb/drb.rb:1582:in `block in main_loop'
Any help is much appreciated.
Here's the Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development, :test do
gem 'sqlite3', '1.3.5'
gem 'rspec-rails', '2.8.1'
gem 'guard-rspec', '0.5.5'
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.2'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails', '2.0.0'
group :development do
gem 'sqlite3', '1.3.5'
end
group :test do
gem 'rspec-rails', '2.8.1'
gem 'capybara', '1.1.2'
gem 'rb-fsevent', '0.4.3.1', :require => false
gem 'growl', '1.0.3'
gem 'guard-spork', '0.3.2'
gem 'spork', '~> 0.9.0.rc'
gem 'factory_girl_rails', '1.4.0'
end
group :production do
gem 'pg', '0.12.2'
end
# To use ActiveModel has_secure_password
gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
It is because that if you make change to the gemfile during development, you should restart the server.

Resources