Skip to content
Advertisement

Tag: rubygems

Rails gem with javascript dependency

I’m writing a rails gem which requires angular, so I added it to my gem’s dependencies: s.add_dependency “angularjs-rails”, “~> 1.6.2” Now, how should I include angular ? I tried to add it directly in my gem’s main js script but sprockets fails with this kind of error: When I try to include angular in an application that uses my gem,

Advertisement