Closed senny closed 10 years ago
You could also add this line so that any changes in the images won't affect your setup:
# In your config/application.rb or an initializer:
config.assets.paths << Rails.root.join('vendor', 'assets', 'images')
I'll see which is the better approach for this and reference this ticket.
Thanks!
@ncuesta If you'd put your assets in app/
instead of vendor/
it should work out of the box.
:heart:
@senny I tested the fix on a vanilla Rails 4.1.4 app, please let me know if you still have any issues.
Thanks for pointing this out! You made it into the README :laughing:
@ncuesta are you going to release to rubygems or you'd like me to test it beforehand?
Here you go: http://rubygems.org/gems/dropzonejs-rails
The released version of the gem does not contain the assets. You'll have to adjust the gemspec to include them.
Oops.. sorry about that. Should be fixed now
thank man. It's working now. I suggest you yank version 0.5.0
to prevent someone from accidentally using it.
Just did so, thanks for the link -- I was going to google that later on otherwise :+1:
I have a question related to compatibility with Rails
4.0
. When I deploy my application the images won't load correctly. Looking at the directory structure I see that the images are kept invendor/assets
. The following paragraph is straight from the Rails upgrading guide (3.2 -> 4.0):Taken from the Action Pack section in the guide.
Edit: Of course adding it to the
precompile
array as described in the guides does fix the issue:It would still be nice to have it work out of the box. Or at least mention it in the README.