Closed mcshakes closed 8 years ago
Have you tried to use another version of sass
or furatto
?
Let me try tinkering with the gem files. I ran 'bundle update' and it said it updated the Sprockets gem (which seems to be the one highlighted in the error logs). Still same error in the browser though
After removing the version from furatto and sass so they looked like this: gem 'furatto' gem 'sass-rails'
I still got the same error.
Next step, I removed the: , github: "IcaliaLabs/sabisu-rails" from after the gem 'sabisu-rails' and ran bundle update. This is one of the messages from the update:
Installing sabisu_rails 0.0.2.pre.beta (was 0.0.2.beta)
Then I ran bundle install. Still same error. I think this is a case of the Sprockets.
Yeah it can be, I have run into the same issues with another project, and I had to remove compass
and sass
and then reinstall them.
Another solution would be to just update the Gemfile
to look something like:
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'active_model_serializers'
gem 'sabisu_rails', github: "IcaliaLabs/sabisu-rails"
gem 'furatto', github: "IcaliaLabs/furatto-rails"
gem 'font-awesome-rails'
gem 'simple_form'
group :doc do
gem 'sdoc', require: false
end
group :development do
gem 'sqlite3'
gem 'web-console', '~> 2.0'
end
group :development, :test do
gem 'byebug'
gem "rspec-rails"
gem "factory_girl_rails"
gem "faker"
gem 'shoulda-matchers'
gem 'spring'
end
gem 'devise'
As you can see I removed the compass-rails
gem as is already a dependency on the new furatto rails gem.
Let me know how it goes!
Cool, so first step was removing compass-rails and updating the gemfile to look as above. I bundled and reopened to receive this:
I uninstalled and reinstalled and still got the same error.
Do you have the version from the github repo?, can I see your Gemfile
?
Hi,
I had the same issue and solved it following the recipe of # solved with Sass::SyntaxError in SabisuRails::Explorer#index on rails 4.2.0 #21, changing these entries in the gemfile (as that issue solution): gem 'sabisu_rails', github: "IcaliaLabs/sabisu-rails" gem 'furatto', github: "IcaliaLabs/furatto-rails" gem 'compass-rails', github: "Compass/compass-rails", branch: "master"
and after that: bundle update
I'm using Chrome and Xubuntu 14.04, and using Prax, and had the following outputs:
Rails s output to console:
Started GET "/sabisu_rails/explorer" for 127.0.0.1 at 2015-06-08 18:13:22 +0100 Processing by SabisuRails::ExplorerController#index as HTML Rendered vendor/cache/ruby/2.2.0/bundler/gems/sabisu-rails-af7499e87912/app/views/sabisu_rails/explorer/index.html.erb within layouts/sabisu_rails (289.2ms) Completed 500 Internal Server Error in 389ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (uninitialized constant Sprockets::SassCacheStore): 10:
evaluate' vendor/cache/ruby/2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in
render'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/legacy_tilt_processor.rb:25:in call' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:75:in
call_processor'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:57:in block in call_processors' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:56:in
reverse_each'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:56:in call_processors' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:86:in
load_asset_by_uri'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:45:in block in load' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:156:in
fetch_asset_from_dependency_cache'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:38:in load' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:20:in
block in initialize'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:47:in yield' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:47:in
load'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/bundle.rb:23:in block in call' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/utils.rb:183:in
dfs'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/bundle.rb:24:in call' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:75:in
call_processor'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:57:in block in call_processors' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:56:in
reverse_each'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:56:in call_processors' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:86:in
load_asset_by_uri'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:45:in block in load' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:156:in
fetch_asset_from_dependency_cache'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:38:in load' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:20:in
block in initialize'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:47:in yield' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:47:in
load'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/base.rb:63:in find_asset' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/environment.rb:30:in
find_asset'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/base.rb:89:in []' vendor/cache/ruby/2.2.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/helper.rb:243:in
lookup_asset_for_path'
vendor/cache/ruby/2.2.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/helper.rb:203:in check_errors_for' vendor/cache/ruby/2.2.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/helper.rb:172:in
block in stylesheet_link_tag'
vendor/cache/ruby/2.2.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/helper.rb:171:in map' vendor/cache/ruby/2.2.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/helper.rb:171:in
stylesheet_link_tag'
vendor/cache/ruby/2.2.0/bundler/gems/sabisu-rails-af7499e87912/app/views/layouts/sabisu_rails.html.erb:13:in _vendor_cache_ruby_______bundler_gems_sabisu_rails_af____e______app_views_layouts_sabisu_rails_html_erb___2120447289562478384_41947740' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/template.rb:145:in
block in render'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in instrument' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/template.rb:333:in
instrument'
vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/template.rb:143:in render' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/renderer/template_renderer.rb:66:in
render_with_layout'
vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/renderer/template_renderer.rb:52:in render_template' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/renderer/template_renderer.rb:14:in
render'
vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/renderer/renderer.rb:42:in render_template' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/renderer/renderer.rb:23:in
render'
vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/rendering.rb:100:in _render_template' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/streaming.rb:217:in
_render_template'
vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/rendering.rb:83:in render_to_body' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb:32:in
render_to_body'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/renderers.rb:37:in render_to_body' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/rendering.rb:25:in
render'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb:16:in render' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:44:in
block (2 levels) in render'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/core_ext/benchmark.rb:12:in block in ms' /home/pvc/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/benchmark.rb:303:in
realtime'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/core_ext/benchmark.rb:12:in ms' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:44:in
block in render'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:87:in cleanup_view_runtime' vendor/cache/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/railties/controller_runtime.rb:25:in
cleanup_view_runtime'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:43:in render' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/mime_responds.rb:215:in
respond_to'
vendor/cache/ruby/2.2.0/bundler/gems/sabisu-rails-af7499e87912/app/controllers/sabisu_rails/explorer_controller.rb:8:in index' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/implicit_render.rb:4:in
send_action'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/base.rb:198:in process_action' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb:10:in
process_action'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb:20:in block in process_action' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in
call'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in call' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in
block (2 levels) in compile'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in call' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in
call'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in _run_callbacks' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in
_run_process_action_callbacks'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in run_callbacks' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb:19:in
process_action'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rescue.rb:29:in process_action' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:32:in
block in process_action'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in block in instrument' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in
instrument'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in instrument' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:30:in
process_action'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/params_wrapper.rb:250:in process_action' vendor/cache/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/railties/controller_runtime.rb:18:in
process_action'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/base.rb:137:in process' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/rendering.rb:30:in
process'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal.rb:196:in dispatch' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rack_delegation.rb:13:in
dispatch'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal.rb:237:in block in action' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:74:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:74:in dispatch' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:43:in
serve'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:43:in block in serve' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in
each'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in serve' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:819:in
call'
vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:518:in call' vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/railtie.rb:194:in
public_send'
vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/railtie.rb:194:in method_missing' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:51:in
serve'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:43:in block in serve' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in
each'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in serve' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:819:in
call'
vendor/cache/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in block in call' vendor/cache/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in
catch'
vendor/cache/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/etag.rb:24:in
call'
vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/conditionalget.rb:25:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/head.rb:13:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/params_parser.rb:27:in call' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/flash.rb:260:in
call'
vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/session/abstract/id.rb:225:in context' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/session/abstract/id.rb:220:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/cookies.rb:560:in call' vendor/cache/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/query_cache.rb:36:in
call'
vendor/cache/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in call' vendor/cache/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:378:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:29:in block in call' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in
call'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in _run_callbacks' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in
_run_call_callbacks'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in run_callbacks' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:27:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/reloader.rb:73:in call' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/remote_ip.rb:78:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in call' vendor/cache/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/middleware.rb:37:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in call' vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:38:in
call_app'
vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in block in call' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in
block in tagged'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in tagged' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in
tagged'
vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in call' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/request_id.rb:21:in
call'
vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/methodoverride.rb:22:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/runtime.rb:18:in
call'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/lock.rb:17:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/static.rb:113:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/sendfile.rb:113:in
call'
vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:518:in call' vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/application.rb:164:in
call'
vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/lock.rb:17:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/content_length.rb:15:in
call'
vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/handler/webrick.rb:89:in service' /home/pvc/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in
service'
/home/pvc/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in run' /home/pvc/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in
block in start_thread'
Rendered vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (11.4ms) Rendered vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.4ms) Rendered vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) Rendered vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (32.3ms) Rendered vendor/cache/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_markup.html.erb (0.3ms) Rendered vendor/cache/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.3ms) Rendered vendor/cache/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.6ms) Rendered vendor/cache/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.4ms) Rendered vendor/cache/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/console.js.erb within layouts/javascript (17.4ms) Rendered vendor/cache/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/main.js.erb within layouts/javascript (0.3ms) Rendered vendor/cache/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.4ms) Rendered vendor/cache/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/templates/index.html.erb (35.1ms)
Chrome output:
NameError in SabisuRails::Explorer#index Showing /home/pvc/projects/marketplaceapi/vendor/cache/ruby/2.2.0/bundler/gems/sabisu-rails-af7499e87912/app/views/layouts/sabisu_rails.html.erb where line #13 raised:
uninitialized constant Sprockets::SassCacheStore Extracted source (around line #10): 8 9 10 11 12 13
def evaluate(context, locals, &block)
cache_store = Sprockets::SassCacheStore.new(context.environment)
paths = context.environment.paths.map { |path| CompassRails::SpriteImporter.new(context, path) }
paths += context.environment.paths.map { |path| self.class.parent::SassImporter.new(context, path) }
paths += ::Rails.application.config.sass.load_paths
Rails.root: /home/pvc/projects/marketplaceapi
Application Trace | Framework Trace | Full Trace
vendor/cache/ruby/2.2.0/gems/compass-rails-2.0.1/lib/compass-rails/patches/sass_importer.rb:10:in evaluate' vendor/cache/ruby/2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in
render'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/legacy_tilt_processor.rb:25:in call' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:75:in
call_processor'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:57:in block in call_processors' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:56:in
reverse_each'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:56:in call_processors' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:86:in
load_asset_by_uri'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:45:in block in load' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:156:in
fetch_asset_from_dependency_cache'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:38:in load' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:20:in
block in initialize'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:47:in yield' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:47:in
load'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/bundle.rb:23:in block in call' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/utils.rb:183:in
dfs'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/bundle.rb:24:in call' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:75:in
call_processor'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:57:in block in call_processors' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:56:in
reverse_each'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/processor_utils.rb:56:in call_processors' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:86:in
load_asset_by_uri'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:45:in block in load' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:156:in
fetch_asset_from_dependency_cache'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/loader.rb:38:in load' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:20:in
block in initialize'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:47:in yield' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/cached_environment.rb:47:in
load'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/base.rb:63:in find_asset' vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/environment.rb:30:in
find_asset'
vendor/cache/ruby/2.2.0/gems/sprockets-3.1.0/lib/sprockets/base.rb:89:in []' vendor/cache/ruby/2.2.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/helper.rb:243:in
lookup_asset_for_path'
vendor/cache/ruby/2.2.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/helper.rb:203:in check_errors_for' vendor/cache/ruby/2.2.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/helper.rb:172:in
block in stylesheet_link_tag'
vendor/cache/ruby/2.2.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/helper.rb:171:in map' vendor/cache/ruby/2.2.0/gems/sprockets-rails-2.3.1/lib/sprockets/rails/helper.rb:171:in
stylesheet_link_tag'
vendor/cache/ruby/2.2.0/bundler/gems/sabisu-rails-af7499e87912/app/views/layouts/sabisu_rails.html.erb:13:in _vendor_cache_ruby_______bundler_gems_sabisu_rails_af____e______app_views_layouts_sabisu_rails_html_erb___2120447289562478384_41947740' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/template.rb:145:in
block in render'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in instrument' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/template.rb:333:in
instrument'
vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/template.rb:143:in render' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/renderer/template_renderer.rb:66:in
render_with_layout'
vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/renderer/template_renderer.rb:52:in render_template' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/renderer/template_renderer.rb:14:in
render'
vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/renderer/renderer.rb:42:in render_template' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/renderer/renderer.rb:23:in
render'
vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/rendering.rb:100:in _render_template' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/streaming.rb:217:in
_render_template'
vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/rendering.rb:83:in render_to_body' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb:32:in
render_to_body'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/renderers.rb:37:in render_to_body' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/rendering.rb:25:in
render'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb:16:in render' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:44:in
block (2 levels) in render'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/core_ext/benchmark.rb:12:in block in ms' /home/pvc/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/benchmark.rb:303:in
realtime'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/core_ext/benchmark.rb:12:in ms' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:44:in
block in render'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:87:in cleanup_view_runtime' vendor/cache/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/railties/controller_runtime.rb:25:in
cleanup_view_runtime'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:43:in render' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/mime_responds.rb:215:in
respond_to'
vendor/cache/ruby/2.2.0/bundler/gems/sabisu-rails-af7499e87912/app/controllers/sabisu_rails/explorer_controller.rb:8:in index' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/implicit_render.rb:4:in
send_action'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/base.rb:198:in process_action' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb:10:in
process_action'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb:20:in block in process_action' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in
call'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in call' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in
block (2 levels) in compile'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in call' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in
call'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in _run_callbacks' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in
_run_process_action_callbacks'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in run_callbacks' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb:19:in
process_action'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rescue.rb:29:in process_action' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:32:in
block in process_action'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in block in instrument' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in
instrument'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in instrument' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:30:in
process_action'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/params_wrapper.rb:250:in process_action' vendor/cache/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/railties/controller_runtime.rb:18:in
process_action'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/base.rb:137:in process' vendor/cache/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/rendering.rb:30:in
process'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal.rb:196:in dispatch' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rack_delegation.rb:13:in
dispatch'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal.rb:237:in block in action' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:74:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:74:in dispatch' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:43:in
serve'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:43:in block in serve' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in
each'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in serve' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:819:in
call'
vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:518:in call' vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/railtie.rb:194:in
public_send'
vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/railtie.rb:194:in method_missing' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:51:in
serve'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:43:in block in serve' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in
each'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in serve' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:819:in
call'
vendor/cache/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in block in call' vendor/cache/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in
catch'
vendor/cache/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/etag.rb:24:in
call'
vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/conditionalget.rb:25:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/head.rb:13:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/params_parser.rb:27:in call' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/flash.rb:260:in
call'
vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/session/abstract/id.rb:225:in context' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/session/abstract/id.rb:220:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/cookies.rb:560:in call' vendor/cache/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/query_cache.rb:36:in
call'
vendor/cache/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in call' vendor/cache/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:378:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:29:in block in call' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in
call'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in _run_callbacks' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in
_run_call_callbacks'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in run_callbacks' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:27:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/reloader.rb:73:in call' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/remote_ip.rb:78:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in call' vendor/cache/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/middleware.rb:37:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in call' vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:38:in
call_app'
vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in block in call' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in
block in tagged'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in tagged' vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in
tagged'
vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in call' vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/request_id.rb:21:in
call'
vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/methodoverride.rb:22:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/runtime.rb:18:in
call'
vendor/cache/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/lock.rb:17:in
call'
vendor/cache/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/static.rb:113:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/sendfile.rb:113:in
call'
vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:518:in call' vendor/cache/ruby/2.2.0/gems/railties-4.2.1/lib/rails/application.rb:164:in
call'
vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/lock.rb:17:in call' vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/content_length.rb:15:in
call'
vendor/cache/ruby/2.2.0/gems/rack-1.6.1/lib/rack/handler/webrick.rb:89:in service' /home/pvc/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in
service'
/home/pvc/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in run' /home/pvc/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in
block in start_thread'
PS: @kurenn, congrat for your guide. A missing piece. I finished ch3 and get going.
Is @pedrovcenteno a solution for someone else?
Thanks for the words @pedrovcenteno
Hi, that's my tweeter name.
By the way, if I may, I think there is a missing instruction in your guide, that may be relevant for newbies as I am: ch 3, pg 6, you instruct to mv specs file into new api folders structure; moving the controller's file is also needed.
BR
Pedro
2015-06-08 19:37 GMT+01:00 Abraham notifications@github.com:
Is @pedrovcenteno https://github.com/pedrovcenteno a solution for someone else?
Thanks for the words @pedrovcenteno https://github.com/pedrovcenteno
— Reply to this email directly or view it on GitHub https://github.com/kurenn/market_place_api/issues/15#issuecomment-110102320 .
Thanks @pedrovcenteno I appreciate it!
Hello @kurenn I had the same problem of @mcshakes and I follow and make how you say remove compass-rails and add in my Gemfile
gem 'furatto', github: "IcaliaLabs/furatto-rails"
After I did bundle update and work perfectly.
Thank you for the book, is awesome! (I'm new in rails)
Excelent! @mcshakes you think I can close this for now?
I can't replicate the problem, so let's do it! Thanks all for hanging with me.
Not sure if this issue should be opened within here or SabisuRails:
During the course of the book, after I do this step within sabisu_rails.rb:
config.base_api_uri = "api.marketplace.dev"
I get the following error when I visit http://localhost:3000/sabisu_rails/explorer :
I do not see the API Explorer in Figure 3.2.
Here is my gemfile setup:
source 'https://rubygems.org'
gem 'rails', '4.2.0' gem 'sass-rails', '~> 5.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.1.0' gem 'jquery-rails' gem 'active_model_serializers'
gem 'sabisu_rails', github: "IcaliaLabs/sabisu-rails" gem 'compass-rails' gem 'furatto' gem 'font-awesome-rails' gem 'simple_form'
group :doc do gem 'sdoc', require: false end
group :development do gem 'sqlite3' gem 'web-console', '~> 2.0'
end
group :development, :test do gem 'byebug' gem "rspec-rails" gem "factory_girl_rails" gem "faker" gem 'shoulda-matchers' gem 'spring' end
gem 'devise'
And here is my sabisu_rails.rb:
SabisuRails.setup do |config|
config.base_api_uri = "api.marketplaceapi.dev" config.api_headers = { "Accept" => "application/vnd.marketplace.v1" }
config.resources = [:users] config.default_resource = :users
Application name
mattr_accessor :app_name
@@app_name = Rails.application.class.parent_name
Authentication
mattr_accessor :authentication_username
@@authentication_username = "admin"
mattr_accessor :authentication_password
@@authentication_password = "sekret"
end