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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:55:45+00:00 2026-05-25T20:55:45+00:00

I am trying to migrate an application from Rails 3 to 3.1 and having

  • 0

I am trying to migrate an application from Rails 3 to 3.1 and having problems with jQuery. The error is bellow. If I remove ‘javascript_include_tag “application”‘ all works fine (with no javascript), so something javascript-related is missing.

Showing C:/.../app/views/layouts/application.html.erb where line #7 raised:

couldn't find file 'jquery'
  (in C:/.../app/assets/javascripts/application.js:7)
 Extracted source (around line #7):

4:   <title><%= @title unless @title.blank? %></title>
5:   <!-- %= render 'layouts/stylesheets' % --> 
6:   <%= stylesheet_link_tag "application" %>
7:   <%= javascript_include_tag "application", :debug => true %>
8:   <%= csrf_meta_tags %>
9: </head>
10: <body>

In my Gemfile I have the entry for jquery-rails:

source 'http://rubygems.org'

gem 'rails', '3.1.0'
gem 'jquery-rails'
....

In application.js:

// This is a manifest file .......
//
//= require jquery
//= require jquery_ujs
//= require_tree .
//

As far as I know that it is the only requirement for working with jQuery in Rails 3.1.

What am I missing?

  • 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-25T20:55:46+00:00Added an answer on May 25, 2026 at 8:55 pm
    //= require jquery
    

    Is a new directive in Rails 3.1, which mentions the jquery.js file required.

    In Rails 3.1, the jquery.js and jquery_ujs.js files are located inside the vendor/assets/javascripts directory contained within the jquery-rails gem.

    Also, did you do a bundle install ?

    More about the asset pipeline at http://guides.rubyonrails.org/asset_pipeline.html.
    More about using Javascript in Rails at http://guides.rubyonrails.org/asset_pipeline.html#manifest-files-and-directives.

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

Sidebar

Related Questions

I'm trying to migrate from C2DM to GCM, and it mostly works just fine.
I'm trying to migrate my application from Rails 3.0.7 to Rails 3.1.3. I have
I'm trying to migrate my application from the old App Engine db to ndb.
I'm trying to deploy my rails application with capistrano, but I'm having some trouble
I'm trying to use Datamapper in my Rails 3.1 application and I'm having trouble
I'm trying to migrate an existing application from IIS with ServletExec to tomcat. I
I am trying to upgrade an application from Rails 3.0.7 to 3.1.1. When I
Trying to migrate my app from Rails 3.0 to 3.2 , and as part
I am trying to migrate an application from OC4J to Weblogic, but I can
I am trying to implement a rails Recipe application from the site http://oreilly.com/ruby/archive/rails-revisited.html .

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.