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 7007601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:37:42+00:00 2026-05-27T21:37:42+00:00

I deployed my app to Heroku. I am having this error in the log

  • 0

I deployed my app to Heroku.
I am having this error in the log :

    ActionView::Template::Error (Unexpected token: eof (undefined)
(in /app/app/assets/javascripts/application.js)):
:     3: <head>
:     4:   <title>wkkin</title>
:     5:   <%= stylesheet_link_tag    "application" %>
: GET xxx.herokuapp.com/users/2/edit dyno=web.1 queue=0 wait=0ms service=1
292ms status=500 bytes=728
:     6:   <%= javascript_include_tag "application" %>
:     7:   <%= csrf_meta_tags %>
:     8: </head>
:     9: <body>
:   app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___1096119453842232088_43006600'

My application.js looks like :

//= require jquery
//= require jquery_ujs
//= require_tree .

I have three files in my folder app/assets/javascripts/

  • application.js
  • form.js
  • users.js.coffee

in application.rb : config.assets.initialize_on_precompile = false
in production.rb : config.assets.compile = true

Any idea ?
Thanks for your help.

  • 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-05-27T21:37:43+00:00Added an answer on May 27, 2026 at 9:37 pm

    This often means you have a missing closing } in one of your .js files not just application.js. I would check that.

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

Sidebar

Related Questions

I just deployed my Rails app to Heroku, but the Javascripts that were using
I've got a rails 3.1 app deployed on Heroku Cedar. I'm having a problem
I have a Rails 3.1 app deployed to Heroku. This app makes heavy use
i deployed my App to my iPhone and get Unknown error calling sqlite3_step (8:
I have a basic Sinatra app deployed to Heroku. I have 'enable :sessions' in
I have deployed a rails 3.1 app to Heroku Cedar stack, and am trying
I have just deployed my app to heroku, and after some problems, it seem
I deployed a Ruby on Rails app to Heroku, and I realized they have
I've deployed a rails 3.1 app on the new cedar stack on heroku. The
After I have re-deployed my app to Heroku, it displays the old public/index.html. What

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.