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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:05:29+00:00 2026-06-09T16:05:29+00:00

For some reason, the js files under app/asset/javascripts folder are no longer being requested

  • 0

For some reason, the js files under app/asset/javascripts folder are no longer being requested by the rails application.

I have enabled assets in application.rb

I have these lines in application.js:

//= require_self
//= require_tree .

with proper use of the blank lines.

And I have included this line in my application.html.erb file:

<%= javascript_include_tag "application" %>
<%= csrf_meta_tag %>

I have application.js, jquery.js, jquery-ui.js, prototype.js and some other js files in the javascripts folder.
But when I access those js files in Firefox firebug, the content are different from that in the folder. I keep getting the message: Served asset /xxx.js - 304 Not Modified (0ms).

It is so frustrating and I really need some help.
Thank you in advance!

I am using

Rails version: 3.2.7

Ruby version: ruby 1.9.3p194

gem version: 1.8.24

Thin server

UPDATE:
I have used rake assets:clean and this never happened again!

  • 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-09T16:05:30+00:00Added an answer on June 9, 2026 at 4:05 pm

    Probably this is beacuse to you have this precompiled files in public dir

    try adding this to development.rb

      config.serve_static_assets = false
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that is looking through some files for old data. In
So I have a Rails application that upon user submission should generate some kind
i have a php app under /path/ everything that doesn't exist (files/directories) needs to
I am using OpenNI on OS X, and for some reason its .h files
For some reason I need to check in a couple of files in the
I am getting ready to submit my first app and for some reason when
Is there a reason why IntelliJ creates a lot of files under C:\Users\<username>\.IntelliJIdea90 ?
When using the terminal in emacs (M-x term) under MacOS for some reason it
The following NSIS line refuses to run for some reason (returns immediately) under Windows
I have a strange svn behaviour : For some reason, I removed a directory

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.