tors / jquery-fileupload-rails

jQuery File Upload integrated for Rails
669 stars 254 forks source link

Couldn't find file 'jquery-fileupload' on Heroku #23

Closed bodrovis closed 12 years ago

bodrovis commented 12 years ago

Hello

I have an app on Heroku and i'm working on it for some months (so it is not new). I've integrated jquery-fileupload in it and everything was working fine on my developer's machine. But when i pushed it to Heroku, i recieved an error when accessing the app: " Template error, couldn't find file 'jquery-fileupload' ". And the same thing when i try to include only jquery-fileupload/basic

In my application.js file i added the line:

//= require jquery-fileupload

The

gem 'jquery-fileupload-rails'

is in the :assets group

And in my application.rb file i have this line:

config.assets.initialize_on_precompile = false

because it is required when using Heroku. I have some other jquery plugins that are accessed the same way and no such errors showed up.

Any clues about this issue?

bodrovis commented 12 years ago

This problem was solved by placing gem 'jquery-fileupload-rails' outside of the :assets group (however in Ryan's railscasts it is placed inside of the assets group). Closing the issue.