rubymine - Could not find gem “jquery-rails”

我是研究僧i 提交于 2019-12-09 16:28:26

问题


I have installed rubymine and Ruby193 (with rubyinstaller).
I now create a rails aplication with "preconfigured for selected database" - "mySqL " checkbox selected
When I click the execute it prints the following error :

D:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/resolver.rb:287:in `resolve': Could not find gem 'jquery-rails (>= 0) x86-mingw32' in the gems available on this machine. (Bundler::GemNotFound)

ideas?


回答1:


Install this gem separately:

gem install jquery-rails

or via Bundler

bundle install (in the project directory where your Gemfile is located)




回答2:


Here is the latest version of jquery-rail to install in ubuntu via terminal:

gem install jquery-rails -v 4.0.4




回答3:


On Windows (at least from what I was just doing) rubymine fails to install gems with bundle install that are very easily installed from the command prompt using the gem install command as shown above.

This will install the gem which will allow you to rerun the rubymine bundler to create your bundle.

*I wanted to put this on the answer above me as a comment but I can't add it for some reason.

There must be some option to let the bundle command in rubymine to download new gems. Is it --system?




回答4:


I've had this problem recently and found a simple way to bypass it. CD into the project folder and check the gemfile to make sure the gems are present. Run bundle install in the project folder. This should install the missing gems into the project folder. Everything worked fine for me after that.



来源:https://stackoverflow.com/questions/10123761/rubymine-could-not-find-gem-jquery-rails

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!