How do I tell RubyMine to use the gems in my Rails app's vendor directory?

已回答

I see help articles online referencing setting Gem paths in RubyMine but it appears in the current version of RM, that has been removed.

My RM is using the gems in my global Ruby install instead of in my Rails app vendor directory. This seems to be standard setup for Rails development, so this is confusing.

Suggestions?

0

Hello Brian,

Could you please specify how you've configured bundler to use vendor/bundle folder? 

 

0

I don't think the Gem Paths setting exists anymore in recent RubyMine versions. RubyMine now uses the configured Ruby interpreter and Bundler to determine which gems to load. I'd check that your project is using the correct Ruby SDK and run bundle install so the IDE picks up the gems from your project's bundle. If it still uses global gems, sharing your RubyMine version, Ruby version, and whether you're using rbenv, RVM, or asdf will make it easier to troubleshoot.

 

0

请先登录再写评论。