rubymine - Could not find gem “jquery-rails”

醉酒当歌 提交于 2019-12-04 02:50:21

Install this gem separately:

gem install jquery-rails

or via Bundler

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

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

gem install jquery-rails -v 4.0.4

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?

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.

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