0

I've just uploaded my app to the heroku servers (with cedar stack) "http://hollow-waterfall-4266.herokuapp.com/" and I can see that the files load and are there, but they don't execute.

The css-file is fine and working, but the javascript files aren't. I've looked at a lot of other posts, but nobody seems to have the answer and I have no idea of where to start to debug this.

Any suggestions?

1
  • Enable your javascript console and reload the page. You'll see quite a few javascript errors. It looks like the link to your jQuery file is broken. Commented Jan 28, 2012 at 22:14

2 Answers 2

0

Your page is throwing "jQuery is not defined" errors. Your page's source looks like this:

<script src="/assets/jquery-9750cb66f964a0901c68c61b399928dc.rails" type="text/javascript"></script>
<script src="/assets/jquery-1.4.4-d1fb061dfe072deb1a689fdc40b2debe.min" type="text/javascript"></script>
<script src="/assets/countdown-1a430b19ccddfaa55e613c153529478d.js" type="text/javascript"></script>
<script src="/assets/jquery-1e7a267339e7c1853437734d5040d838.infieldlabel" type="text/javascript"></script>
<script src="/assets/charCount-0f5848b48fc67330a2532bbce115bc9c.js" type="text/javascript"></script>
<script src="/assets/application-0dd84c1347591b7d784745c6f5602f7b.js" type="text/javascript"></script>

jQuery should be the first JS file you load before any others. Right now, the unobtrusive JS file is loaded before the actual jQuery 1.4.4 file. Also, it looks like the link to the jQuery file (jquery-1.4.4-d1fb061dfe072deb1a689fdc40b2debe.min) doesn't work.

Sign up to request clarification or add additional context in comments.

2 Comments

Just noticed that. I moved the jquery.rails, but I still have absolutely no idea why some of the javascript files are missing the .js in the end. Any suggestions?
Can you paste you error stack? and What heroku stack, rails and ruby version are you using?
0

I had messed up my whole asset pipeline. Started a new rails app.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.