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

  • SEARCH
  • Home
  • 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 6196897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:43:22+00:00 2026-05-24T03:43:22+00:00

Man, WTH is going on with this stuff. You know what that line actually

  • 0

Man, WTH is going on with this stuff. You know what that line actually does in Rails 3.1?

<script src="/assets/defaults.js" type="text/javascript"></script>

As they say on ESPN, “Come on, man.”

I know that assets are no longer treated as second-class citizens. But it seems as if they are unable to even receive a green card in this release candidate. In the new app/assets/javascripts/application.js:

// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require_tree .

Sooooo. Am I supposed to download jquery? What do I do? Because there’s nothing in that javascripts directory except application.js.

Aggravating. And yet it’s free, so how am I complaining? Anyway, these issues seem pretty basic, but I would appreciate any help you can offer.

  • 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-24T03:43:25+00:00Added an answer on May 24, 2026 at 3:43 am

    In Rails 3.1 there is no longer a “defaults” as such, but rather what is specified in your application.js file are the “defaults”. You would include this file using this line:

     javascript_include_tag "application"
    

    The jquery and jquery_ujs files come with the jquery-rails gem which is in the default Rails 3.1 Gemfile.

    The //= require line in that file tells Sprockets that you want to require a file which in this case would be jquery.js from within jquery-rails, where the //= require_tree . will require all other JavaScript files in the same directory as application.js and concatenate them all into one file.

    You can read more about the asset pipeline here.

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

Sidebar

Related Questions

The man page on fork() states that it does not copy data pages, it
From the XDrawString man page it seems that it aceepts signed 32 bit x
I know someone who has a one-man company developing applications in Delphi and Pascal.
Man, I just had this project given to me - expand on this they
man gitglossary contains this definition of an evil merge : An evil merge is
Man... thought using ASIO in Boost was going to be easy and intuitive. :P
The man page did not clearly specify this. But looking at openssl's apps implementations,
Man the simplest stuff always seems so crazy in Objective-C to me, anyways I
The man page for the splice system call says that splice may fail and
Let's say that I have an arbitrary string like `A man + a plan

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.