1

I wrote a gem and installed it in my Rails app, including the following configuration inside the app. Problem is that the Rails app does not find the Gem's Javascript files and Sprockets gives me errors such as "Sprockets::FileNotFound". Any clues as to what I'm doing wrong here?

1
  • Solved using accepted answer. Commented Jul 6, 2013 at 14:47

1 Answer 1

1

Your gem must contain an engine class which inherits from Rails::Engine for Sprockets to include it in its scan path. See http://guides.rubyonrails.org/asset_pipeline.html#adding-assets-to-your-gems

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.