Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Sprockets::FileNotFound after installation #18

Open
chrchr opened this issue Mar 20, 2014 · 4 comments
Open

Sprockets::FileNotFound after installation #18

chrchr opened this issue Mar 20, 2014 · 4 comments

Comments

@chrchr
Copy link

chrchr commented Mar 20, 2014

This is likely just because I am not super up-to-speed on the asset pipeline, but when I follow the instructions in the README for my Rails 3.2.17 app, things don't work.

I've added zeroclipboard-rails to my Gemfile. I run bundle

I add to application.js:

  //= require zeroclipboard

And i get file not found loading the page:

  couldn't find file 'zeroclipboard'
    (in /Users/rc/work/app/app/assets/javascripts/application.js:17)

The swf file is in public/assets but, indeed, there's no zeroclipboard.js in the project at all.

@chrchr chrchr changed the title Sprockets::FileNotFound on installation Sprockets::FileNotFound after installation Mar 20, 2014
@osdakira
Copy link

I had same error on rspec.
My problem was environment settings (:group) in Gemfile.

group :development do
  gem 'zeroclipboard-rails'
end

When I added :test environment, it was solved.

group :development, :test do
  gem 'zeroclipboard-rails'
end

@dcromer
Copy link

dcromer commented Apr 23, 2015

I encountered this error while including this gem within another Rails 4 engine. I resolved it by including

require 'zeroclipboard-rails`

in my engine's base class.

@dearlordylord
Copy link

Adding it in initializers seems to work too.

@AaronGoldsmith1
Copy link

the "//=require zeroclipboard" needs to be above "//=require tree ."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants