Note that there are some explanatory texts on larger screens.

plurals
  1. POGet Gem vendor files in asset pipeline path
    primarykey
    data
    text
    <p>I have created a gem with a vendor directory containing stylesheets and javascripts from <a href="https://github.com/jlong/sass-twitter-bootstrap">bootstrap-sass</a> and bootstrap itself.</p> <p>The directory structure is bootstrap-sass-gem/vendor/assets/javascripts</p> <p>and</p> <p>bootstrap-sass-gem/vendor/assets/stylesheets</p> <p>I've required the gem in a test project but whenever I try to require something from that gem I receive a <code>Sprockets::FileNotFound</code> error.</p> <p>For instance, in application.css I added <code>*= require bootstrap</code>. bootstrap is located at <code>bootstrap-sass-gem/vendor/assets/stylesheets/bootstrap.scss</code> and so by my reckoning should be included in the asset pipeline.</p> <p>I'm running RVM Ruby 1.9.2 and Rails 3.1.</p> <p>Here's my config file:</p> <pre><code> $:.push File.expand_path("../lib", __FILE__) # Maintain your gem's version: require "bootstrap-sass-gem/version" # Describe your gem and declare its dependencies: Gem::Specification.new do |s| s.name = "bootstrap-sass-gem" s.version = BootstrapSassGem::VERSION s.authors = ["James Smith"] s.email = ["James@smithware.co.uk"] s.homepage = "http://www.smithware.co.uk" s.summary = "The Bootstrap-sass project Gemified" s.description = "Description of BootstrapSassGem." s.files = Dir["{lib,vendor,rdoc}/**/*"] + Dir["*"] #s.test_files = Dir["test/**/*"] s.require_paths = ["lib/**/*"] # We are dependent on the asset pipeline in 3.1.0 s.add_dependency "rails", "~&gt; 3.1.0" # s.add_development_dependency "" end </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload