Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8057159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:56:11+00:00 2026-06-05T08:56:11+00:00

After deploying a Rails app to Heroku, no javascript functions are working. The files

  • 0

After deploying a Rails app to Heroku, no javascript functions are working.

The files appear to have been compiled (though its not easy to see in the minified file).

What is a logical process of steps to work out why the javascript is not working (it works fine in production).

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:56:12+00:00Added an answer on June 5, 2026 at 8:56 am

    Sometimes I have issues because of the asset pipeline and my misunderstanding of it. So what I do just to make sure things are being packaged up correctly is just put in a simple alert when the page loads (put it on some random page users can’t get to, etc)

    alert('some-unique-string')
    

    Push the code up to the server. Then in chrome bring up the page and use the dev tools, goto the “scripts” tab. From there you can search for the string some-unique-string since your string literal wont be minified. If you don’t see that then you know your javascript isn’t being included for some reason.

    That at least will give you a starting point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am deploying a rails app to heroku which uses PostgreSQL as its back-end.
I am having trouble with deploying rails 3.1. app to heroku. After some research,
I'm deploying a Rails app on Heroku (for now) via git, and would also
After deploying an app of Heroku I am having trouble getting the database populated
After deploying my rails 3 app in production I noticed that paths are not
I'm struggling to get Sphinx back up and running after deploying a rails app
I'm getting an error when deploying my app to Heroku. After looking 3 days
I have an app I am deploying to Heroku. Everything seems to work besides
I am having trouble deploying express app on nodester. After successfully running the default
As usual, I'm having strange issues with deploying a Rails app to our different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.