Error displaying a new Rails application

I am trying to create a new project using rails, but it displays an error. I am working on a mac and its display error.

$ rails new EMS

/Users/.rvm/gems/ruby-2.2.0/bin/rails:23:in `load': cannot load such file -- /Users/.rvm/gems/ruby-2.2.0/gems/rails-4.2.0/bin/rails (LoadError) from /Users/.rvm/gems/ruby-2.2.0/bin/rails:23:in `<main>' from /Users/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval' from /Users/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>' 
+5
source share
2 answers

Once I also faced the same problem when I tried to create a new rails application. So we followed these steps below and it was fitted,

  • Remove the rails
  • Remove ruby
  • rvm latest version of ruby ​​using rvm
  • how to install rails using the gem install rails command

After completing this step, I can now create a new application. Perhaps this will also help you resolve this error.

+1
source

If you use Windows as a development environment, follow this link: "certificate verification failed" Error installing Ruby gems on Windows

And I would recommend you use: http://railsinstaller.org/en

By the way, Brother, Rails will behave perfectly with the Linux platform.

And for mac os, please take a look at: https://rvm.io/rvm/install

This will help you to have several versions of ruby ​​and switch between them ... to use the full power of ruby ​​and precious stones.

+1
source

All Articles