I have a working application with bootstrap css and js. I am trying to add refinery to it following this guide: http://ift.tt/1qqZBZb
I do the following
- gem 'refinerycms', '~> 3.0.0'
- bundle install
- rails generate refinery:cms --fresh-installation
- rails s
- go to localhost:3000
And I get the following error:
Sprockets::FileNotFound - couldn't find file 'bootstrap' with type 'application/javascript':
sprockets (3.5.2) lib/sprockets/directive_processor.rb:182:in `rescue in block in process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:179:in `block in process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:178:in `process_directives'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:83:in `_call'
sprockets (3.5.2) lib/sprockets/directive_processor.rb:68:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/bundle.rb:23:in `block in call'
sprockets (3.5.2) lib/sprockets/utils.rb:183:in `dfs'
sprockets (3.5.2) lib/sprockets/bundle.rb:24:in `call'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:75:in `call_processor'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
sprockets (3.5.2) lib/sprockets/processor_utils.rb:56:in `call_processors'
sprockets (3.5.2) lib/sprockets/loader.rb:134:in `load_from_unloaded'
sprockets (3.5.2) lib/sprockets/loader.rb:60:in `block in load'
sprockets (3.5.2) lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
sprockets (3.5.2) lib/sprockets/loader.rb:44:in `load'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:20:in `block in initialize'
sprockets (3.5.2) lib/sprockets/cached_environment.rb:47:in `load'
sprockets (3.5.2) lib/sprockets/base.rb:66:in `find_asset'
sprockets (3.5.2) lib/sprockets/environment.rb:30:in `find_asset'
sprockets (3.5.2) lib/sprockets/base.rb:92:in `[]'
sprockets-rails (2.3.3) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path'
sprockets-rails (2.3.3) lib/sprockets/rails/helper.rb:138:in `block in javascript_include_tag'
sprockets-rails (2.3.3) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag'
app/views/layouts/application.html.erb:201:in `_app_views_layouts_application_html_erb__2086046959781884270_70248866320820'
actionview (4.2.4) lib/action_view/template.rb:145:in `block in render'
activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument'
actionview (4.2.4) lib/action_view/template.rb:333:in `instrument'
actionview (4.2.4) lib/action_view/template.rb:143:in `render'
actionview (4.2.4) lib/action_view/renderer/template_renderer.rb:66:in `render_with_layout'
actionview (4.2.4) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
actionview (4.2.4) lib/action_view/renderer/template_renderer.rb:14:in `render'
actionview (4.2.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionview (4.2.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionview (4.2.4) lib/action_view/rendering.rb:100:in `_render_template'
actionpack (4.2.4) lib/action_controller/metal/streaming.rb:217:in `_render_template'
actionview (4.2.4) lib/action_view/rendering.rb:83:in `render_to_body'
actionpack (4.2.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
actionpack (4.2.4) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
actionpack (4.2.4) lib/abstract_controller/rendering.rb:25:in `render'
actionpack (4.2.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
activesupport (4.2.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/home/kireto/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
activesupport (4.2.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:43:in `render'
refinerycms-pages (3.0.2) lib/refinery/pages/instance_methods.rb:21:in `render'
app/controllers/static_controller.rb:17:in `index'
Here is the line in the application.html.erb
<%= javascript_include_tag "application" %>
It is trying to include application.js
Here is the requires in the application.js
//= require jquery
//= require jquery_ujs
//= require jquery-ui/autocomplete
//= require jquery-ui/core
//= require jquery-ui/effect
//= require jquery-ui/sortable
//= require autocomplete-rails
//= require cocoon
//= require bootstrap
//= require_selfenter code here
If a remove //=require bootstrap then the application loads, but I do not have bootstrap.
Here is the application.scss.erb
//= require reset
@import "bootstrap-sprockets";
@import "bootstrap";
//= require coderay
//= require subtitles
//= require_self
//= require_tree .
Here is the gem file and the changes introduced:
git diff --unified=0 Gemfile.lock
diff --git a/Gemfile.lock b/Gemfile.lock
index eb596d5..a1fc134 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -59,0 +60 @@ GEM
+ acts_as_indexed (0.8.3)
@@ -64 +65 @@ GEM
- autoprefixer-rails (6.3.5)
+ autoprefixer-rails (6.3.6)
@@ -70,0 +72 @@ GEM
+ babosa (1.0.2)
@@ -134,0 +137,2 @@ GEM
+ decorators (2.0.1)
+ railties (>= 4.0.0, < 5.0.0)
@@ -148,0 +153,4 @@ GEM
+ dragonfly (1.0.12)
+ addressable (~> 2.3)
+ multi_json (~> 1.0)
+ rack (>= 1.3.0)
@@ -171,0 +180,2 @@ GEM
+ font-awesome-sass (4.5.0)
+ sass (>= 3.2)
@@ -178,0 +189,3 @@ GEM
+ globalize (5.0.1)
+ activemodel (>= 4.2.0, < 4.3)
+ activerecord (>= 4.2.0, < 4.3)
@@ -304,0 +318,3 @@ GEM
+ rails-i18n (4.0.8)
+ i18n (~> 0.7)
+ railties (~> 4.0)
@@ -319,0 +336,40 @@ GEM
+ refinerycms (3.0.2)
+ refinerycms-core (= 3.0.2)
+ refinerycms-images (= 3.0.2)
+ refinerycms-pages (= 3.0.2)
+ refinerycms-resources (= 3.0.2)
+ refinerycms-core (3.0.2)
+ actionpack (>= 4.2.3, < 5.0)
+ activerecord (>= 4.2.3, < 5.0)
+ awesome_nested_set (~> 3.0.0)
+ coffee-rails (~> 4.0, >= 4.0.0)
+ decorators (~> 2.0.0)
+ font-awesome-sass (>= 4.3.0, < 5.0)
+ jquery-rails (>= 2.3.0)
+ jquery-ui-rails (~> 5.0.0)
+ railties (>= 4.2.3, < 5.0)
+ refinerycms-i18n (~> 3.0.0)
+ sass-rails (>= 4.0, < 5.1)
+ truncate_html (~> 0.9)
+ will_paginate (~> 3.0.2)
+ zilch-authorisation
+ refinerycms-i18n (3.0.1)
+ rails-i18n (~> 4.0.1)
+ routing-filter (>= 0.4.0)
+ refinerycms-images (3.0.2)
+ dragonfly (~> 1.0.0)
+ globalize (>= 4.0.0, < 5.2)
+ refinerycms-core (= 3.0.2)
+ refinerycms-pages (3.0.2)
+ awesome_nested_set (~> 3.0.0)
+ babosa (!= 0.3.6)
+ friendly_id (>= 5.1.0, < 5.3)
+ globalize (>= 4.0.0, < 5.2)
+ refinerycms-core (= 3.0.2)
+ seo_meta (~> 2.0.0.rc.1)
+ speakingurl-rails (~> 8.0.0)
+ refinerycms-resources (3.0.2)
+ acts_as_indexed (~> 0.8.0)
+ dragonfly (~> 1.0.0)
+ globalize (>= 4.0.0, < 5.2)
+ refinerycms-core (= 3.0.2)
@@ -322,0 +379,3 @@ GEM
+ routing-filter (0.5.1)
+ actionpack (~> 4.2)
+ activesupport (~> 4.2)
@@ -357,0 +417,2 @@ GEM
+ seo_meta (2.0.0.rc.1)
+ railties (>= 3.0.0)
@@ -369,0 +431,2 @@ GEM
+ speakingurl-rails (8.0.2)
+ railties (>= 3.1)
@@ -398,0 +462 @@ GEM
+ truncate_html (0.9.3)
@@ -417 +481 @@ GEM
- unicorn (5.0.1)
+ unicorn (5.1.0)
@@ -419 +482,0 @@ GEM
- rack
@@ -432 +495 @@ GEM
- will_paginate (3.1.0)
+ will_paginate (3.0.7)
@@ -436,0 +500 @@ GEM
+ zilch-authorisation (0.0.1)
@@ -489,0 +554 @@ DEPENDENCIES
+ refinerycms (~> 3.0.0)
I am using rails 4.2.4.
It should be mentioned that everything works before adding refinery and I can not track this down.
Aucun commentaire:
Enregistrer un commentaire