我创建了一个gem,其中包含来自bootstrap-sass和bootstrap本身的样式表和javascripts的供应商目录.
目录结构是bootstrap-sass-gem/vendor/assets/javascripts
和
引导 - 萨斯 - 宝石/供应商/资产/样式表
我在测试项目中需要gem,但每当我尝试从gem中获取某些东西时,我都会收到Sprockets::FileNotFound错误.
例如,在application.css中我添加了*= require bootstrap.bootstrap位于,bootstrap-sass-gem/vendor/assets/stylesheets/bootstrap.scss因此我的计算应该包含在资产管道中.
我正在运行RVM Ruby 1.9.2和Rails 3.1.
这是我的配置文件:
$:.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 = …Run Code Online (Sandbox Code Playgroud) 不幸的是,搜索这种材料会给我带来很多噪音,所以我想知道是否有人知道如果有人希望学习如何使用数据库来存储网站配置信息而不是文件,那么这里有一个很好的资源.
我想我感兴趣的一些要点是:1)如何存储数据.一个像e107的阵列?每个可配置的单独行?2)如何获取配置数据.全球阵列?