Created
August 21, 2012 07:35
-
-
Save Prevole/3413141 to your computer and use it in GitHub Desktop.
Rails plugin with only assets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$:.push File.expand_path("../lib", __FILE__) | |
# Maintain your gem's version: | |
require "backbone-bundle/version" | |
# Describe your gem and declare its dependencies: | |
Gem::Specification.new do |s| | |
s.name = "backbone-bundle" | |
s.version = BackboneBundle::VERSION | |
s.authors = ["Prevole"] | |
s.email = ["realemailthere"] | |
s.homepage = "someurlthere" | |
s.summary = "Toolbox of different piece of backbone codes." | |
s.description = "Contains the different useful javascript files for backbone." | |
s.files = Dir["{lib,vendor}/**/*"] | |
s.files.reject! { |fn| fn.include? "lib/tasks" } | |
s.test_files = Dir["test/**/*"] | |
s.require_paths = ["lib"] | |
s.add_dependency "rails", "~> 3.2.6" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "backbone-bundle/version" | |
require "backbone-bundle/engine" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module BackboneBundle | |
class Engine < ::Rails::Engine | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module BackboneBundle | |
VERSION = "0.0.1" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= require backbone # Working | |
#= require backbone.layoutmanager # Not working, Error: the file is not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'backbone-on-rails' | |
gem 'backbone-bundle' | |
gem 'haml_coffee_assets' | |
gem 'execjs' | |
gem 'i18n-js' | |
end | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The javascript code of backbone/layoutmanager extension that is probably not relevant for my problem |
Thans to Radar on the #rubyonrails. The solution was really simple. Just restarted the rails server and it worked. Newbie error.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The real error I got when I try to access any page that require application.coffee/js in my main project:
Sprockets::FileNotFound in …
couldn't find file 'backbone.layoutmanager'