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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:22:26+00:00 2026-05-26T11:22:26+00:00

Currently, it seems as though my jquery and other js files aren’t being included

  • 0

Currently, it seems as though my jquery and other js files aren’t being included in my views..

I have this gem in my gem file:

gem ‘jquery-rails’, ‘>= 1.0.12’

I’m using rails 3.1.0

in my header is:

<head>
  <%= stylesheet_link_tag :all %>
  <%= javascript_include_tag :defaults %>
  <%= csrf_meta_tag %>
</head>

The html coming through the view is this:

<head>
  <link href="/assets/all.css" media="screen" rel="stylesheet" type="text/css" />
  <script src="/assets/defaults.js" type="text/javascript"></script>
  <meta content="authenticity_token" name="csrf-param" />
<meta content="scIP+mIH7ON1DYP9XWeSidk/5i4DizpuwQOP8mcxA9M=" name="csrf-token" />
</head>

in my config/application.rb file I also have:

config.action_view.javascript_expansions[:defaults] = %w(jquery rails)

Any help would be greatly appreciated

  • 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-26T11:22:26+00:00Added an answer on May 26, 2026 at 11:22 am

    In rails 3.1, you want this instead:

    <%= stylesheet_link_tag "application" %>
    <%= javascript_include_tag "application" %>
    

    That way it’ll use the asset pipeline. Without it, it’s looking for all.css and defaults.js

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

Sidebar

Related Questions

I am currently reading though this tutorial here And in it he seems to
Basically, I currently have login/ in urls.py redirect to the django.contrib.auth.views.login and that seems
I currently have a MySQL dual master replication (A<->B) set up and everything seems
I currently have the gcc4.7 and the gcc4.7-base, etc., packages installed but GCC seems
I have two backbone Views. One is the main view and the other is
I have a row of evenly-spaced navigation items, which looks like this: The currently
This seems like something neat that might be built into jQuery but I think
Im currently using Code Igniter to have pretty URLs, and I have this system
I most likely have the same problem as in this question: Weird Chrome prototype/jQuery
I am currently evaluating message queue systems and RabbitMq seems like a good candidate,

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.