nathancolgate/s3-swf-upload-plugin — Issue #52: Heroku ActionView::Template::Error (s3_upload.js isn't precompiled)
Author: jeremywhitt
Created: 2011-12-27 18:09:02+00:00
State: open

I am currently trying to use this plugin on a Heroku Rails 3.1.3 application.

I have this in my gemfile.

gem 's3_swf_upload', :git => 'git://github.com/nathancolgate/s3-swf-upload-plugin'
gem 'aws-s3', :require => 'aws/s3'

I bundled the gem into my application, generated the rails code, created a new controller and view, and added the following to the view.

<%=raw s3_swf_upload_tag %>

I have added, committed and pushed all files to the heroku master. I am getting the following error.

2011-12-27T17:53:14+00:00 app[web.1]: Completed 500 Internal Server Error in 129ms
2011-12-27T17:53:14+00:00 app[web.1]:
2011-12-27T17:53:14+00:00 app[web.1]: ActionView::Template::Error (s3_upload.js isn't precompiled):
2011-12-27T17:53:14+00:00 app[web.1]: 1:

2011-12-27T17:53:14+00:00 app[web.1]: 2:

Uploader

2011-12-27T17:53:14+00:00 app[web.1]: 4:
2011-12-27T17:53:14+00:00 app[web.1]: 3: <%=raw s3_swf_upload_tag %>
2011-12-27T17:53:14+00:00 app[web.1]: 5:

2011-12-27T17:53:14+00:00 app[web.1]: app/views/pages/home.html.erb:3:in `_app_views_pages_home_html_erb___2628368205308588842_20282460'

I have also tried running the following.

bundle exec rake assets:precompile