uninitialized constant Valium::ValueOf (NameError) - ruby-on-rails

I got error when i start rails project as the following error. I feel it may be because of incompatible gem version but i am not sure if it is because of Bundler gem or Valium gem. Thank in advance for the reply.
root#ip-10-152-178-228:/var/www/resource_map_sea# bundle exec rails s
/usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/valium-0.5.0/lib/valium.rb:113:in `<top (required)>': uninitialized constant Valium::ValueOf (NameError)
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `require'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `each'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `block in require'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `each'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `require'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler.rb:131:in `require'
from /var/www/resource_map_sea/config/application.rb:13:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:79:in `require'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:79:in `block in server'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:76:in `server'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands.rb:17:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

Related

Monterey OSX. `const_defined?': uninitialized constant Fog::Rackspace::CDN (NameError)

I have recently upgraded my OS. from Big sur to Montery.
When I was running my ruby application I am getting an error with careerwave
.rvm/gems/ruby-2.3.1/gems/fog-core-2.3.0/lib/fog/core/provider.rb:48:in `const_defined?': uninitialized constant Fog::Rackspace::CDN (NameError)
Can you please help in this regard, there was no change in the Gemfile or Gemfile.lock.
/Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-core-2.3.0/lib/fog/core/provider.rb:48:in `const_defined?': uninitialized constant Fog::Rackspace::CDN (NameError)
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-core-2.3.0/lib/fog/core/provider.rb:48:in `service_klass'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-core-2.3.0/lib/fog/core/provider.rb:37:in `service'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-rackspace-0.1.6/lib/fog/rackspace.rb:53:in `<module:Rackspace>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-rackspace-0.1.6/lib/fog/rackspace.rb:28:in `<module:Fog>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-rackspace-0.1.6/lib/fog/rackspace.rb:10:in `<top (required)>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-2.2.0/lib/fog.rb:42:in `<top (required)>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/bundler/gems/carrierwave-ff89d6e1c055/lib/carrierwave/storage.rb:5:in `<top (required)>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/bundler/gems/carrierwave-ff89d6e1c055/lib/carrierwave.rb:78:in `<top (required)>'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:81:in `require'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:81:in `block (2 levels) in require'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:76:in `each'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:76:in `block in require'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:65:in `each'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:65:in `require'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler.rb:114:in `require'
from /Users/rajesh.banoth/code/pwm/config/application.rb:7:in `<top (required)>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:78:in `require'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Thanks in advance.
Looks like you need to include https://github.com/fog/fog-rackspace gem also. fog-core gem doesnt have code for Rackspace.

ruby on rails uglifier error on server start up WINDOWS 10

so im new to this and im trying to star my localhost server for rails v5 on win10 i have looked around and cant figer it out
i put this code in`
bundler exec rails server
then i get this
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)
Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
Backtrace for gem load error is:
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/execjs-2.7.0/lib/execjs.rb:5:in `<module:ExecJS>'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/execjs-2.7.0/lib/execjs.rb:4:in `<top (required)>'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/uglifier-3.1.13/lib/uglifier.rb:5:in `require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/uglifier-3.1.13/lib/uglifier.rb:5:in `<top (required)>'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:91:in `require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `each'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `block in require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `each'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler.rb:107:in `require'
C:/Sites/test_app/config/application.rb:7:in `<top (required)>'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `require'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `block in server'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:90:in `block (2 levels) in require'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `each'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:86:in `block in require'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `each'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/runtime.rb:75:in `require'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler.rb:107:in `require'
from C:/Sites/test_app/config/application.rb:7:in `<top (required)>'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `require'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:88:in `block in server'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
pls help
You need to install NodeJS, please check out https://nodejs.org/en/download/
But if you want to keep developing with Rails on Windows, you should check the WSL https://msdn.microsoft.com/pt-br/commandline/wsl/install_guide

How to fix action_controller/metal/responder (LoadError) in Ruby on Rails

I installed the jasper-rails gem and this error showed when im starting rails server. I am using the latest version of ruby and rails on windows. How do i fix this?
c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/jasper-rails-1.0.3/lib/jasper-rails.rb:26:in `require': cannot load such file -- action_controller/metal/responder (LoadError)
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/jasper-rails-1.0.3/lib/jasper-rails.rb:26:in `<top (required)>'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `require'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `each'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:86:in `block in require'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `each'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:75:in `require'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler.rb:106:in `require'
from c:/Users/cjhmonteclaro/Desktop/Execute/config/application.rb:7:in `<top (required)>'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:88:in `require'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:88:in `block in server'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from c:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.0.1/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

Error while installing Sprangular. undefined method `sprockets_v2?' for Ngannotate:Module

Thanks in advance
I am following this to install sprangular locally.
https://github.com/sprangular/sprangular/wiki/setup-guide
I tried manual method also its giving same error.
getting this error while bundle install
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:89:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'sprangular'. (Bundler::GemRequireError)
Gem Load Error is: undefined method `sprockets_v2?' for Ngannotate:Module
Backtrace for gem load error is:
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/ngannotate-rails-1.2.2/lib/ngannotate/rails/railtie.rb:2:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/ngannotate-rails-1.2.2/lib/ngannotate/rails.rb:2:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/sprangular-0.1.0/lib/sprangular.rb:9:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:86:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:86:in `block (2 levels) in require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `each'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `block in require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `each'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler.rb:102:in `require'
/home/spider/Dropbox/Round360/myapp/config/application.rb:14:in `<top (required)>'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require_application_and_environment!'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:133:in `generate_or_destroy'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:51:in `generate'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
/home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:85:in `block (2 levels) in require'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `each'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `block in require'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `each'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `require'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/bundler-1.12.1/lib/bundler.rb:102:in `require'
from /home/spider/Dropbox/Round360/myapp/config/application.rb:14:in `<top (required)>'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:146:in `require_application_and_environment!'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:133:in `generate_or_destroy'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:51:in `generate'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /home/spider/.rvm/gems/ruby-2.3.0#rails-4.1.8/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Try bundle update instead of bundle install . and also do you have node.js installed?

Rails server error after updating Ruby (Name Error)

I updated Ruby to 2.2.2 from 2.0.0 because I think it may have been causing issues with Heroku, but now when I try and start the rails server I'm getting a name error, and because I'm new to RoR I have no idea what's causing it.
Here is my log:
C:\row\dev\my_app>rails s
C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/helpers.
rb:40:in `<module:Helpers>': uninitialized constant ActionView::Helpers::ActiveM
odelHelper (NameError)
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_
view/helpers.rb:4:in `<module:ActionView>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_
view/helpers.rb:3:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_
view/base.rb:5:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_
view/view_paths.rb:1:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/abstrac
t_controller/rendering.rb:4:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_
controller/base.rb:204:in `<class:Base>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_
controller/base.rb:164:in `<module:ActionController>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_
controller/base.rb:5:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/respond
ers/controller_method.rb:37:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/respond
ers.rb:15:in `<module:Responders>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/respond
ers.rb:9:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/devise-3.5.1/lib/devise.rb:7
:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:76:in `require'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:76:in `block (2 levels) in require'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:72:in `each'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:72:in `block in require'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:61:in `each'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:61:in `require'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler.r
b:134:in `require'
from C:/row/dev/david_youtube/config/application.rb:7:in `<top (required
)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:78:in `require'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:78:in `block in server'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:75:in `tap'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:75:in `server'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:39:in `run_command!'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
The issue seemed to be that I had two versions of Ruby installed. After removing all versions of Ruby, and doing a clean install of 2.2.2 I was able to start the Rails server.

Resources