heroku / legacy-cli

Heroku CLI
https://cli.heroku.com
MIT License
1.37k stars 380 forks source link

We're sorry, but something went wrong. (Jquery Issue) #956

Closed armgit5 closed 10 years ago

armgit5 commented 10 years ago

I downloaded jquery datetimepicker from http://xdsoft.net/jqplugins/datetimepicker/. I have included all the necessary files and ran it with $('#datetimepicker').datetimepicker();

Everything worked on my local MAC and I would be able to select date and time fine. But when I committed and pushed the application to Heroku, I gave me this error massage "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly." I wanted to know what went wrong. Could someone please help? Thank you!

friism commented 10 years ago

Have you tried pushing again? It might have been an intermittent error in the system that receives your code.

armgit5 commented 10 years ago

Yes I have but it is still giving me the same error. The part that I don't understand is the datetimepick is working very well on my local machine. Please advise...Thanks.

On Saturday, November 23, 2013 10:51 PM, Michael Friis notifications@github.com wrote:

Have you tried pushing again? It might have been an intermittent error in the system that receives your code. — Reply to this email directly or view it on GitHub.

armgit5 commented 10 years ago

Yes I have but it is still giving me the same error. The part that I don't understand is the datetimepick is working very well on my local machine. Please advise...Thanks.

armgit5 commented 10 years ago

I did these steps here and it works now:

  1. Production.db -> config.assets.compress = true
  2. Production.db -> config.assets.precompile += %w( jquery.datetimepicker.css jquery.datetimepicker.js )
  3. Run "bundle exec rake assets:precompile"
  4. on application.js I added "//= require jquery.datetimepicker.js"
catsby commented 10 years ago

Thank you for posting the follow up where you found a solution. Judging by the solution you shared, that describes and issue with the Rails asset pipeline.

armgit5 commented 10 years ago

I have another question I added two more files called select2.css and select2.js. I followed the same steps as stated previously. Everything worked on my development MAC, but when I pushed it to Heroku, it gave me "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly." Would you please help?

armgit5 commented 10 years ago

I have included the followings on the page that game me the error massage. When I removed it from that page, it worked just fine.

<%#= stylesheet_link_tag "select2" %> <%#= javascript_include_tag , "select2" %>