zurb-foundation gem not added to asset path in existing Rails 3.2 application -
i have existing rails 3.2.14 application trying add zurb-foundation to. have added zurb-foundation gem , run installation generator.
my problem that, whenever try load page, error:
couldn't find file 'foundation'
when sprockets hits
//= require foundation
line in application.js
the problem appears directory assets zurb-foundation gem not being added load path. in contrast, have application generated more recently, including zurb-foundation beginning, , @asset_paths.asset_environment.paths includes following
"/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jquery-rails-3.0.4/vendor/assets/javascripts", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/assets/javascripts", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/zurb-foundation-4.3.0/scss", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/zurb-foundation-4.3.0/js"
which not included in asset load path in app updating. instead, getting (with p @asset_paths.asset_environment.paths in better_errors diagnostic window)
"/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jquery-ui-rails-4.0.4/app/assets/images", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jquery-ui-rails-4.0.4/app/assets/javascripts", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jquery-ui-rails-4.0.4/app/assets/stylesheets", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jquery-rails-3.0.4/vendor/assets/javascripts", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/assets/javascripts"
interestingly, if run console in development mode , @ rails.application.config.assets.path, includes:
"/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jquery-ui-rails-4.0.4/app/assets/images", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jquery-ui-rails-4.0.4/app/assets/javascripts", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jquery-ui-rails-4.0.4/app/assets/stylesheets", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jquery-rails-3.0.4/vendor/assets/javascripts", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2/lib/assets/javascripts", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/zurb-foundation-4.3.1/scss", "/usr/local/var/rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/zurb-foundation-4.3.1/js"
and include zurb-foundation asset paths.
i have included gem 'zurb-foundation' in assets group, in development group, , outside group. using zurb-foundation-4.3.1 in new app.
my gemfile assets group is:
group :assets gem 'sass-rails' gem 'coffee-rails' gem 'uglifier' gem 'compass-rails' gem 'zurb-foundation' end
this problem seems similar sprockets::filenotfound zurb foundation, although jurriaan did not mention asset load path.
any idea missing?
thanks!
have tried restarting webserver?
update: said runs fine in development, have tried rake assets:clean , rake assets:precompile?
Comments
Post a Comment