Disclaimer: I'm a total newbie to Ruby and RubyMine...
I wanted to use bower to manage third party dependencies. As such:
- I've configured bower to store assets in the /vendor/assets/components folder of my project
- Ive added the following to config/application.rb:
config.assets.paths << Rails.root.join('vendor', 'assets', 'components')
I've added the following to the application.js sprockets manifest:
//= require angular/angular
//= require angular-bootstrap/ui-bootstrap-tpls
- Restarted the rails server
All of this actually works fine. When I load my root/home page, script tags get rendered for both angular and angular-bootstrap... and my angularjs code is running fine.
However, RubyMine seems to think there is a problem in that application.js manifest... it has red lines under both of the requires that I added saying "cannot resolve director 'angular'" and "cannot resolve director 'angular-bootstrap'".
Am I doing something wrong here or is this a "bug" in RubyMine?