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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:36:05+00:00 2026-05-27T00:36:05+00:00

I know how to use jquery alone but since I am pretty new to

  • 0

I know how to use jquery alone but since I am pretty new to Rails 3.1 I have only little idea how to integrate jquery into Rails.

So far I have come up with following steps but the first (naive) way of programing things are usually wrong 🙂

  1. datepicker plugin for jquery (e.g. jquery-ui-timepicker-addon.js) into app/assets/javascripts
  2. add line //= jquery-ui-timepicker-addon to application.js
  3. When I want date picker in some VIEW I will create app/assets/javascripts/VIEW.js and in there I will use standard jQuery to hook up date picker

Is there a more elegant way?

  • 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-27T00:36:06+00:00Added an answer on May 27, 2026 at 12:36 am

    You can try this:

    1. Add the jquery-ui .js file to the app/javascripts folder. Which you can download [here][1]

      [1]: http://jqueryui.com/download. Maybe your jquery-ui-timepicker-addon.js will do as well.

    2. You don’t need to add code to application.js. As all .js files in the javascripts folder
      will be included and compiled automatically

    3. Add the following line to
      app/javascripts/{viewname}.js.coffee

      $ -> $(‘.date’).datepicker()

      The line above is the coffeescript equivalent of:

      $(“#datepicker”).datepicker();

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

Sidebar

Related Questions

I know you can use .find to find td:contains('text') , but if I have
I know it is possible to use jQuery to do something like: $('body').css('cursor','wait'); What
I want use jQuery in my project. I know the javascript_include_tag calls the jQuery
I would like to know how can I use jQuery to select multiple items
I know this is very basic. I would like to use jQuery to change
I Download Jquery datepicker from http://jqueryui.com/demos/datepicker/ and use it,know I want to my calndar's
I would like to know if I can use the following JQuery function on
I know in jQuery 1.4.x there is a method delay(). We can use it
I know you use the C based networking API to do FTP communication but
Trying to use JQuery Easing plugin in my wordpress but its giving me following

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.