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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:15:02+00:00 2026-06-14T10:15:02+00:00

I have a Rails 3.2.5 app that is using Twitter Bootstrap. I am trying

  • 0

I have a Rails 3.2.5 app that is using Twitter Bootstrap. I am trying to use the JQuery UI datepicker. I have Googled this for days looking for a solution and can’t find anything. I have a text field in a Rails view that I am trying to use with the JQuery datepicker. However, when I click in the text field, nothing happens.

In my Rails view, I have a simple text_field_tag like so:

<%= text_field_tag 'andrew' %>

In my associated CoffeeScript file:

$ ->
  $('#andrew').datepicker

In the Chrome Developer Tools JavaScript Console, I see this error:

Uncaught TypeError: Object [object Object] has no method ‘datepicker’

Now I have determined there is a conflict between JQuery-UI and Bootstrap. In that same JavaScript console, I can do this:

jQuery.noConflict();

and I get

function (a,b){return new e.fn.init(a,b,h)}

Then I can type:

$('andrew'.datepicker();

And I get:

[<input id="andrew" name="andrew" type="text" class="hasDatepicker">]

After this, when I go over to the browser window, clicking in the text field brings up the datepicker calendar just like I want it to.

So how do I get this to work in my code? That is, I am manually resolving the conflict in the JavaScript Console but I can’t get it to work just through my code.

  • 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-14T10:15:03+00:00Added an answer on June 14, 2026 at 10:15 am

    It looks like I have this one solved after much pain. I created a new project and slowly, methodically moved over pieces of my application to the new app. I finally uncovered a directory that was only in my project with the problem described above.

    There was a ‘public/assets’ directory with the contents below. I don’t recall creating this directory or putting these files in that directory. Renaming the directory to something different caused my JQuery-UI datepicker to work properly in conjunction with Twitter Bootstrap.

    Here are the contents of public/assets:

    -rw-r--r--  1 andrunix  staff   83360 Sep  3 18:01 application 6fc1172d858485077bbecdb82b96399a.css
    -rw-r--r--  1 andrunix  staff   13546 Sep  3 18:01 application-6fc1172d858485077bbecdb82b96399a.css.gz
    -rw-r--r--  1 andrunix  staff  100616 Sep  3 18:01 application-990a4cf0df42934fcc4c14aaf88b7ced.js
    -rw-r--r--  1 andrunix  staff   35448 Sep  3 18:01 application-990a4cf0df42934fcc4c14aaf88b7ced.js.gz
    -rw-r--r--  1 andrunix  staff   83294 Sep  3 18:01 application.css
    -rw-r--r--  1 andrunix  staff   13484 Sep  3 18:01 application.css.gz
    -rw-r--r--  1 andrunix  staff  100618 Sep  6 20:26 application.js
    -rw-r--r--  1 andrunix  staff   35448 Sep  3 18:01 application.js.gz
    -rw-r--r--  1 andrunix  staff   13826 Aug 30 17:42 glyphicons-halflings-f6675c325532ec11a984d58e172b8e2a.png
    -rw-r--r--  1 andrunix  staff    8777 Aug 30 17:42 glyphicons-halflings-white-13553a5bf21ae3cc374006592488ec64.png
    -rw-r--r--  1 andrunix  staff    8777 Aug 30 17:42 glyphicons-halflings-white.png
    -rw-r--r--  1 andrunix  staff   13826 Aug 30 17:42 glyphicons-halflings.png
    -rw-r--r--  1 andrunix  staff     368 Sep  5 15:00 manifest.yml
    -rw-r--r--  1 andrunix  staff    6646 Aug 10 19:57 rails-be8732dac73d845ac5b142c8fb5f9fb0.png
    -rw-r--r--  1 andrunix  staff    6646 Aug 10 19:57 rails.png
    

    If anyone knows how this got created, that would put my mind at ease. Thanks!

    Andrew

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

Sidebar

Related Questions

I have this RoR app that calls to RAILS_ROOT. When running it using rails
I am working on a really simple app that is styled using twitter-bootstrap-rails. One
I have a rails 3.2 app using Twitter Bootstrap via the gem ' twitter-bootstrap-rails
I have deployed a rails app on Heroku, and I am using the twitter-bootstrap-rails
I have a rails app that is using Devise perfectly in development. I have
I have a Rails app that is served by Apache and Passenger, using only
I have a rails app that is using Devise, with a User model, no
I have a rails app that is combining javascript assets using Jammit , and
I have a rails 3 app that is currently using Devise for authentication. I
I'm trying to import a CSV file to my Rails app that's using CarrierWave

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.