No matter what I try to do it won't work. Here is my current console code.
All I know is that it has something to do with sass-rails.
I really am looking out for some help here. I understand the GEM cannot be found however, how do I make it so it can be loaded.
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'sass-rails'. (Bundler::GemRequireError)
from /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
from /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
from /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
from /home/ubuntu/workspace/config/application.rb:7:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `require'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
from /home/ubuntu/workspace/bin/rails:9:in `require'
from /home/ubuntu/workspace/bin/rails:9:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/client/rails.rb:28:in `load'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/client/rails.rb:28:in `call'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/client/command.rb:7:in `call'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/client.rb:28:in `run'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/bin/spring:49:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `load'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/ubuntu/workspace/bin/spring:13:in `require'
from /home/ubuntu/workspace/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>
And my GEM file
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.6'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', group: [:development, :test]
# Use postgresql as the database for production
group :production do
gem 'pg'
gem 'rails_12factor'
end
gem 'sass-rails', '5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
try to install nodejs first.
sudo apt-get install nodejs
The run
bundle install
Related
I trying to run my server but I have always the same error... I dont find the solution. I search in github and on google nothing work...
Do you have idea ?
rails s
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'sass-rails'. (Bundler::GemRequireError)
Gem Load Error is: uninitialized constant Sass::Script
Backtrace for gem load error is:
/home/nicolas/.gem/ruby/2.3.0/gems/sass-rails-5.0.6/lib/sass/rails/helpers.rb:12:in `<top (required)>'
/home/nicolas/.gem/ruby/2.3.0/gems/sass-rails-5.0.6/lib/sass/rails.rb:8:in `<top (required)>'
/home/nicolas/.gem/ruby/2.3.0/gems/sass-rails-5.0.6/lib/sass-rails.rb:1:in `<top (required)>'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `require'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `each'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `block in require'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `each'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `require'
/home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler.rb:106:in `require'
/home/nicolas/Bureau/rails/site/campsite/config/application.rb:7:in `<top (required)>'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `require'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `block in server'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
/home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Bundler Error Backtrace:
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:90:in `block (2 levels) in require'
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `each'
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `block in require'
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `each'
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `require'
from /home/nicolas/.gem/ruby/2.3.0/gems/bundler-1.13.6/lib/bundler.rb:106:in `require'
from /home/nicolas/Bureau/rails/site/campsite/config/application.rb:7:in `<top (required)>'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `require'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `block in server'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /home/nicolas/.gem/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
My gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
#gem 'pg'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
#Recherche
gem 'elasticsearch-rails'
gem 'elasticsearch-model'
gem 'searchkick'
#Pagination
gem 'kaminari'
#Google map
gem 'gmaps4rails'
#Gem pour faciliter les scopes des recherches
gem 'has_scope'
gem 'record_tag_helper', '~> 1.0'
#Upload d'images
gem 'carrierwave'
#activeadmin
gem 'sass-rails'
gem 'activeadmin', '~> 1.0.0.pre4'
gem 'inherited_resources', :git => "https://github.com/activeadmin/inherited_resources.git"
gem 'ransack', :git => "https://github.com/activerecord-hackery/ransack.git"
gem 'draper', '> 3.x'
gem 'devise'
gem 'cancancan'
gem "rolify"
# Use jquery as the JavaScript library
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'gmaps-autocomplete-rails'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
#geocoder
gem 'geocoder'
#ImageUploader
gem "paperclip"
#friendly url
gem 'friendly_id'
#balise SEO
gem 'meta-tags'
#bootstrap
gem 'bootstrap-sass', '~> 3.3.6'
#Traduction
gem 'rails-i18n', '~> 5.0.0' # For 5.0.x
#mailboxer
gem 'mailboxer', :git => "https://github.com/mailboxer/mailboxer.git"
#uploadimage
gem 'jquery-fileupload-rails'
#gem 'inherited_resources', :git => "https://github.com/activeadmin/inherited_resources.git"
gem "font-awesome-rails"
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
If you need more details I can paste my other file. Just ask me ;)
EDIT
Gist link Here
I cannot seem to get my server to run on c9.io after trying many attempts to update the Gemfile and do bundle update and bundle install commands it still seems to get caught up on the sass rails gem.
`master) $ rails server -b $IP -p $PORT
/usr/local/rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'sass-rails'. (Bundler::GemRequireError)
from /usr/local/rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /usr/local/rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
from /usr/local/rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
from /usr/local/rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
from /usr/local/rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
from /usr/local/rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
from /home/ubuntu/workspace/toy_app/config/application.rb:7:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
from /home/ubuntu/workspace/toy_app/bin/rails:9:in `require'
from /home/ubuntu/workspace/toy_app/bin/rails:9:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/ubuntu/workspace/toy_app/bin/spring:13:in `require'
from /home/ubuntu/workspace/toy_app/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
With my current gems being the following:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails'
# Use sqlite3 as the database for Active Record
# Use SCSS for stylesheets
gem 'sass-rails'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails'
# See for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more:
gem 'turbolinks'
# Build JSON APIs with ease. Read more:
gem 'jbuilder'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'sqlite3'
gem 'byebug'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console'
# Spring speeds up development by keeping your application running in the background. Read more:
gem 'spring'
end
Change your gemfile to:
source 'https://rubygems.org'
gem 'rails', '4.2.2'
gem 'sass-rails', '5.0.2'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.3'
gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '0.4.0', group: :doc
group :development, :test do
gem 'sqlite3', '1.3.9'
gem 'byebug', '3.4.0'
gem 'web-console', '2.0.0.beta3'
gem 'spring', '1.1.3'
end
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
end
run:
$ bundle install --without production
Then making sure you're in your toy_app directory, run:
$ rails server -b $IP -p $PORT
I'm attempting to upgrade by application to use the new Rails 4 binstubs. Actually, it's a fresh Rails 4 project, but I had originally run bundle --binstubs and am now fixing it. Attempting:
bundle exec rake rails:update:bin --trace
I see:
rake aborted!
NameError: uninitialized constant Sprockets::Processor
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/polymer-rails-0.2.8/lib/polymer-rails/processors/components_processor.rb:5:in `<module:Rails>'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/polymer-rails-0.2.8/lib/polymer-rails/processors/components_processor.rb:4:in `<module:Polymer>'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/polymer-rails-0.2.8/lib/polymer-rails/processors/components_processor.rb:3:in `<top (required)>'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/polymer-rails-0.2.8/lib/polymer-rails.rb:4:in `require'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/polymer-rails-0.2.8/lib/polymer-rails.rb:4:in `<top (required)>'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.6/lib/bundler/runtime.rb:76:in `require'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.6/lib/bundler/runtime.rb:72:in `each'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.6/lib/bundler/runtime.rb:72:in `block in require'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.6/lib/bundler/runtime.rb:61:in `each'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.6/lib/bundler/runtime.rb:61:in `require'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.9.6/lib/bundler.rb:134:in `require'
/home/nick/Development/sh0/web/config/application.rb:7:in `<top (required)>'
/home/nick/Development/sh0/web/Rakefile:4:in `require'
/home/nick/Development/sh0/web/Rakefile:4:in `<top (required)>'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/home/nick/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/home/nick/.rbenv/versions/2.1.5/bin/rake:23:in `load'
/home/nick/.rbenv/versions/2.1.5/bin/rake:23:in `<main>'
Using rbenv with ruby-2.1.5.
Here's my Gemfile:
source 'https://rubygems.org'
# Bower components
source 'https://rails-assets.org' do
gem 'rails-assets-polymer'
end
# Polymer-Rails
gem 'polymer-rails'
# Sprockets
gem 'sprockets'
gem 'sprockets-rails'
# Deployment
gem 'mina'
# MySQL for relational data
gem 'mysql2'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
gem 'unicorn'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
Resolved!
rails-polymer at this version does not support sprockets >= 3.0.0.
I resolved the issue by first specifying gem 'sprockets', "< 3.0.0" in the Gemfile, and running bundle update sprockets.
See correct answer posted below
If you have sprockets >= 3.0.0 in your Gemfile.lock, then the issue is that polymer-rails is not compatible with it. They have updated the repo to limit the sprockets versions, but the new version of the gem might not have been release, or you're using an older version of the gem.
https://github.com/alchapone/polymer-rails/commit/745802f9eebba41c8f92c5ea6ba2060178d689ab
I'm getting the following error after trying to add jasmine to my rails 4 project
rails g jasmine:install
/Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:1132:in `module_function': undefined method `singleton_class?' for module `Sass::Util' (NameError)
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:1132:in `block in <module:Util>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:1132:in `each'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:1132:in `<module:Util>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:14:in `<module:Sass>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/util.rb:12:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass/version.rb:2:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/sass-3.3.0.rc.2/lib/sass.rb:9:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/bootstrap-sass-3.0.3.0/lib/bootstrap-sass/sass_functions.rb:1:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/bootstrap-sass-3.0.3.0/lib/bootstrap-sass.rb:7:in `load!'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/bootstrap-sass-3.0.3.0/lib/bootstrap-sass.rb:76:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `each'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in `block in require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `each'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.1/lib/bundler.rb:131:in `require'
from config/application.rb:7:in `<top (required)>'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/railties-4.0.0/lib/rails/commands.rb:44:in `require'
from /Users/harrymoreno/.rvm/gems/ruby-2.1.0/gems/railties-4.0.0/lib/rails/commands.rb:44:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Gemfile
source 'https://rubygems.org'
ruby '2.1.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
gem 'pg'
gem 'devise'
gem 'font-awesome-rails'
gem 'bootstrap-sass', '~> 3.0.3.0'
gem 'simple_form', git: 'https://github.com/plataformatec/simple_form.git'
gem 'carrierwave'
gem 'fog', '~> 1.3.1'
gem 'mini_magick'
gem 'rails_12factor'
gem 'friendly_id', '~> 5.0.0'
gem 'feedzirra'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
gem 'bourbon'
group :development do
gem 'sass-rails-source-maps'
end
group :development, :test do
gem 'jasmine'
end
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails', '~> 3.0'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
# gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
any ideas on what the problem might be?
The solution is to specify the latest version of sass in your gemfile
gem 'sass', git: 'https://github.com/nex3/sass.git'
the issue was solved just 17 days ago here https://github.com/nex3/sass/issues/1057?source=cc
I get this error when I try to run rake db:migrate
rake aborted!
Don't know how to build task 'assets:precompile:primary'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/task_manager.rb:49:in `[]'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/task.rb:339:in `[]'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/tinymce-rails-langs-0.1/lib/tasks/assets.rake:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.rc2/lib/active_support/dependencies.rb:222:in `load'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.rc2/lib/active_support/dependencies.rb:222:in `block in load'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.rc2/lib/active_support/dependencies.rb:213:in `load_dependency'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/activesupport-4.0.0.rc2/lib/active_support/dependencies.rb:222:in `load'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc2/lib/rails/engine.rb:641:in `block in run_tasks_blocks'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc2/lib/rails/engine.rb:641:in `each'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc2/lib/rails/engine.rb:641:in `run_tasks_blocks'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc2/lib/rails/application.rb:243:in `block in run_tasks_blocks'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc2/lib/rails/engine/railties.rb:17:in `each'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc2/lib/rails/engine/railties.rb:17:in `each'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc2/lib/rails/application.rb:243:in `run_tasks_blocks'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc2/lib/rails/engine.rb:446:in `load_tasks'
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc2/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/mate/sites/rails_projects/bev/Rakefile:6:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/application.rb:589:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/application.rb:89:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/application.rb:88:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/application.rb:72:in `block in run'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/bin/rake:23:in `load'
/usr/local/rvm/gems/ruby-2.0.0-p0#global/bin/rake:23:in `<main>'
/usr/local/rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `<main>'
I am using Rails 4 rc2 and Ruby 2.0 and also Compass.
Compass config:
project_type = :rails
http_path = '/'
css_dir = "app/assets/stylesheets"
sass_dir = "app/assets/sass"
My Gemfile:
source 'https://rubygems.org'
ruby '2.0.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0.rc2'
# Use sqlite3 as the database for Active Record
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
# Use SCSS for stylesheets
group :assets do
gem 'sass-rails', github: 'rails/sass-rails'
gem 'coffee-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'compass-rails', github: 'milgner/compass-rails', ref: '1749c06f15dc4b058427e7969810457213647fb8'
end
# gem 'sprockets-rails', github: 'rails/sprockets-rails'
gem 'carrierwave'
gem 'tinymce-rails', github: 'spohlenz/tinymce-rails', ref: '7eeb0cbf089f895ff23513eb1017cf389b09bfa7'
gem 'tinymce-rails-langs'
# Use Uglifier as compressor for JavaScript assets
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
group :production do
gem 'therubyracer', platforms: :ruby
end
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
# gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
group :development do
gem 'rails-footnotes'
end
gem 'devise', '3.0.0.rc'
I am trying to solve this for 2 days and its driving me crazy...
Anyone encountered the same problem?
Best Wishes,
Matt
Problem solved. The tinymce-rails-langs gem caused this issue. Simply commented it out.
It looks like you're integrating vanilla Compass.
The correct way to do it since Rails 3.1 is through Compass Rails.
I hope it helps.