Bower support and asset path issue

Thanks for the Bower support. When using Bower, it is recommended to use vendor/assets for components. I'm using 'vendor/assets/component' and have added this to application.rb:

config.assets.paths << Rails.root.join('vendor', 'assets', 'components')

The application works runs fine but RubyMine is unable to resolve the assets and complains they are not there. Is there any way to get RubyMine to see the Bower components in vendor/assets? I would think RubyMine would examine config.assets.paths but perhaps not?

Thanks,

Dan

3 comments

Hi,

RubyMine is supposed to find assets in vendor/assets directory so it looks like a bug for me.
Could you please file a ticket about the problem in our tracker (http://youtrack.jetbrains.com/issues/RUBY) with a simple project which reproduces the problem.

Thanks in advance, Oleg.

0

RubyMine does indeed find assets under 'vendor/assets/javascripts' or 'vendor/assets/stylesheets' but Bower places files under 'vendor/assets/bower_components/javascript' and 'vendor/assets/bower_components/stylesheets ' where RubyMine is unable to see these assets (assuming .bowerrc is configure with "directory": "vendor/assets/bower_components")

Let me ask a slightly different question, what directory can I put in .bowerrc that would allow Bower to work with RubyMine (with a Rails project)?

Thanks,

Dan

0

Hi Dan,

it is for sure supposed to work with assets under 'vendor/assets/javascripts'  and 'vendor/assets/stylesheets' all other directories may not work :(
I'd suggest to file a ticket in our tracker (http://youtrack.jetbrains.com/issues/RUBY) about this functionality.

Regards, Oleg.

0

Please sign in to leave a comment.