Rails: NameError: uninitialized constant Compass

Posted . Visible to the public.

While trying to upgrade an app from Rails 3.2 to 4.0, when trying to run the app I got the following error:

NameError: uninitialized constant Compass
/var/lib/gems/1.9.1/gems/fancy-buttons-1.1.2/lib/fancy-buttons.rb:1:in `<top (required)>'
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler/runtime.rb:76:in `require'
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler/runtime.rb:72:in `each'
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler/runtime.rb:72:in `block in require'
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler/runtime.rb:61:in `each'
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler/runtime.rb:61:in `require'
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler.rb:134:in `require'
/vagrant/config/application.rb:12:in `<top (required)>'
/vagrant/Rakefile:4:in `require'
/vagrant/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

Solution

according to http://stackoverflow.com/questions/5613702/uninitialized-constant-compass-in-rails-3-app you need to include compass in your gem file before fancy-buttons.

adre
Last edit
adre
Posted by adre to Foxsoft (2015-07-14 15:02)