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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:01:24+00:00 2026-06-10T06:01:24+00:00

I am using Rails 3.2 and the jquery-ui-rails plugin to add the datepicker to

  • 0

I am using Rails 3.2 and the jquery-ui-rails plugin to add the datepicker to my JS manifest file.

This is my manifest file:

//= require jquery_ujs
//= require jquery.ui.datepicker
//= require_tree .

I am getting my jQuery library separately from Google’s CDN.

However, by adding jquery.ui to the manifest file, it automatically includes its jQuery dependency – so now I end up with two jQueries on my final HTML document.

I don’t want this additional jQuery file – I only want the one from Google’s CDN. Using sprockets, I can use the stub directive to selectively ‘exclude’ the jQuery file.

So this what I did – and it doesn’t work – ie jQuery is still added to my final JS file …

//= stub jquery
//= require jquery_ujs
//= require jquery.ui.datepicker
//= require_tree .

I have tried several combinations:

//= stub jquery.js

//= stub "jquery"

//= stub "jquery.js"

//= stub "/jquery.js"

etc …

But none of these work. I haven’t been able to find an example anywhere of how this is supposed to work. Incidentally, I have also tried

//= stub jquery_ujs

Which didn’t stub out the jquery_ujs library either …

  • 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-10T06:01:25+00:00Added an answer on June 10, 2026 at 6:01 am

    I think the reason why it doesn’t work is that Rails 3.2.x only uses sprockets v2.1. Stubs, however, are only available in sprockets >= 2.2. You could try manually updating sprockets (forking actionpack).

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

Sidebar

Related Questions

I'm using the jQuery File Upload plugin (documentation here ) integrated into my Rails
I have such problem: I'm using rails, devise gem and jQuery validation plugin. I
I am using jQuery in my Rails application. I wanted to add a expand
I am using the jQuery Form Plugin with my Rails app. I have a
I'm using the jQuery FullCalendar plugin with Ruby on Rails, and now I want
I'm using Thinking Sphinx in a Rails application combined with the jQuery autocomplete plugin
I'm using Rails with the JQuery plugin, and have some really complicated validations for
I'm making very simple ROR (rails 2.3.5) application and using jQuery plugin jRails. The
I'm trying to install the jQuery Grid Rails Plugin. I'm using JRuby 1.7.0. I
I'm trying to use the jQuery token input plugin with Rails and Mongoid. Using

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.