Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to use asset_path for Jcrop.gif #17

Open
jfly opened this issue Nov 5, 2015 · 1 comment
Open

Need to use asset_path for Jcrop.gif #17

jfly opened this issue Nov 5, 2015 · 1 comment

Comments

@jfly
Copy link

jfly commented Nov 5, 2015

Right now, Jcrop.gif doesn't get compiled as part of the asset pipeline. I use nginx to serve up static resources, so the request for Jcrop.gif doesn't succeed. The css file should be an erb file that calls asset_path.

I can submit a PR for this if desired.

@jfly jfly changed the title Need to use image_for for Jcrop.gif Need to use asset_path for Jcrop.gif Nov 5, 2015
jfly added a commit to jfly/carrierwave-crop that referenced this issue Nov 5, 2015
jfly added a commit to jfly/carrierwave-crop that referenced this issue Nov 5, 2015
@aspirewit
Copy link

aspirewit commented Jan 5, 2017

We can also put the Jcrop.gif into the folder vendor/assets/images

Finaly, overriding the stylesheet in the scss file:

.jcrop-vline,
.jcrop-hline {
  background: #ffffff url(asset-path("Jcrop.gif")) !important;
}

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

No branches or pull requests

2 participants